Struct monto::broker::Broker
[−]
[src]
pub struct Broker { /* fields omitted */ }
The Broker.
Methods
impl Broker
[src]
fn serve_until<F: Future>(self, stop: F) -> ServeFuture<F>
Returns a Future that will resolve once the given Future resolves, serving clients until then.
TODO: This can be made more efficient when
conservative_impl_trait
is stabilized.
fn serve_forever(self) -> ServeFuture<Empty<Void, Void>>
Returns a Future that will never resolve, but will serves clients forever.
TODO: This can be made more efficient when
conservative_impl_trait
is stabilized.
impl Broker
[src]
fn new(
config: Config,
handle: Handle
) -> Box<Future<Item = Broker, Error = NewBrokerError>>
config: Config,
handle: Handle
) -> Box<Future<Item = Broker, Error = NewBrokerError>>
Creates a new instance of the Broker, returning a Future for the constructed Broker.
TODO: This can be made more efficient when
conservative_impl_trait
is stabilized.
fn find_service(&self, id: &Identifier) -> Option<&Service>
Returns the service with the given id, if one exists.
fn client_negotiation(&self) -> ClientBrokerNegotiation
Creates a ClientBrokerNegotiation.
fn service_negotiation(&self) -> ServiceBrokerNegotiation
Creates a ServiceBrokerNegotiation.
fn version(&self) -> SoftwareVersion
Returns the version information for the Broker.