Skip to main content

HandlesQueue

Trait HandlesQueue 

Source
pub trait HandlesQueue<M: QueueMessage>: Actor + Sized {
    type Future: Future<Output = Result<M::Reply>> + Send + 'static;

    // Required method
    fn handle_queue(self: Arc<Self>, ctx: Ctx<Self>, message: M) -> Self::Future;
}

Required Associated Types§

Source

type Future: Future<Output = Result<M::Reply>> + Send + 'static

Required Methods§

Source

fn handle_queue(self: Arc<Self>, ctx: Ctx<Self>, message: M) -> Self::Future

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§