OpenAgentID documentation
Source referencesRust module referencearsenal-broker

arsenal-broker · server

Declared module signatures, types, configuration, and source documentation.

Source: arsenal/crates/arsenal-broker/src/server.rs. SHA-256: c0f5d78e3eaf16bf215ea3ad3fd6bf0aa4d925aa785cebea43a33f79c601e8e8.

This source reference follows declared modules and preserves feature attributes. It includes public declarations and implementation methods in those modules. Private-module exports and trait resolution still require the compiler; not every declaration is a crate-root import. Function bodies and constant values are omitted. Source comments describe their implementation context and are not a production deployment claim.

server::BrokerServer

Broker server

pub struct BrokerServer {

}

Source line: 44.

server::BrokerServer::new

Create a new broker server

Errors

Returns an error if initialization fails

pub async fn new(
        config: BrokerConfig,
        secret_store: Arc<dyn SecretStore>,
    ) -> Result<Self, Box<dyn std::error::Error + Send + Sync>>;

Source line: 58.

server::BrokerServer::with_service

Create with an existing service

#[must_use]
pub fn with_service(config: BrokerConfig, service: Arc<BrokerService>) -> Self;

Source line: 79.

server::BrokerServer::service

Get a reference to the broker service

#[must_use]
pub fn service(&self) -> &Arc<BrokerService>;

Source line: 90.

server::BrokerServer::router

Build the router

pub fn router(&self) -> Router;

Source line: 95.

server::BrokerServer::run_insecure

Run the server without TLS (for development/testing)

Errors

Returns an error if the server fails to start

pub async fn run_insecure(&self) -> Result<(), Box<dyn std::error::Error + Send + Sync>>;

Source line: 183.

server::BrokerServer::run

Run the server with TLS

Errors

Returns an error if the server fails to start

pub async fn run(&self) -> Result<(), Box<dyn std::error::Error + Send + Sync>>;

Source line: 208.

On this page