Skip to main content

InterpretDelivery

Trait InterpretDelivery 

Source
pub trait InterpretDelivery<P: Protocol>: SendInterpreter {
    // Required method
    fn interpret_delivery(
        &mut self,
        delivery: Delivery<P>,
    ) -> impl Future<Output = Result<(), Self::Error>> + Send;
}
Expand description

Interpreter capability for deliveries to one concrete actor protocol.

Required Methods§

Source

fn interpret_delivery( &mut self, delivery: Delivery<P>, ) -> impl Future<Output = Result<(), Self::Error>> + Send

Interpret one typed delivery, awaiting bounded-mailbox capacity when required by the concrete communication transport.

§Errors

Returns this interpreter’s concrete delivery failure.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§