pub trait Route<M>: Send + Sync + DynClone {
    fn try_send_msg<'life0, 'async_trait>(
        &'life0 self,
        message: M
    ) -> Pin<Box<dyn Future<Output = Result<Option<M>>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; fn send_msg<'life0, 'async_trait>(
        &'life0 self,
        message: M
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; }
Expand description

Dynamic route as trait object, should be implemented on the actor’s handle

Required Methods

Try to send message to the channel.

if the Route is behind lock, drop the lock before invoking this method.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Implementors