Trait microservices::esb::Handler[][src]

pub trait Handler<B> where
    Self: Sized,
    B: BusId,
    Error: From<Self::Error>, 
{ type Request: Request; type Address: ServiceAddress; type Error: Error; fn identity(&self) -> Self::Address;
fn handle(
        &mut self,
        senders: &mut SenderList<B, Self::Address>,
        bus_id: B,
        source: Self::Address,
        request: Self::Request
    ) -> Result<(), Self::Error>;
fn handle_err(&mut self, error: Error) -> Result<(), Error>; fn on_ready(
        &mut self,
        _senders: &mut SenderList<B, Self::Address>
    ) -> Result<(), Self::Error> { ... } }

Trait for types handling specific set of ESB RPC API requests structured as a single type implementing Request.

Associated Types

Loading content...

Required methods

fn identity(&self) -> Self::Address[src]

fn handle(
    &mut self,
    senders: &mut SenderList<B, Self::Address>,
    bus_id: B,
    source: Self::Address,
    request: Self::Request
) -> Result<(), Self::Error>
[src]

fn handle_err(&mut self, error: Error) -> Result<(), Error>[src]

Loading content...

Provided methods

fn on_ready(
    &mut self,
    _senders: &mut SenderList<B, Self::Address>
) -> Result<(), Self::Error>
[src]

Loading content...

Implementors

Loading content...