LocalDelivery

Trait LocalDelivery 

Source
pub trait LocalDelivery<M: MessageMetadata> {
    // Required method
    fn deliver<'life0, 'async_trait>(
        &'life0 self,
        message: M,
    ) -> Pin<Box<dyn Future<Output = Result<(), DeliveryError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

Source

fn deliver<'life0, 'async_trait>( &'life0 self, message: M, ) -> Pin<Box<dyn Future<Output = Result<(), DeliveryError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementations on Foreign Types§

Source§

impl<M: MessageMetadata> LocalDelivery<M> for UnboundedSender<M>

Source§

fn deliver<'life0, 'async_trait>( &'life0 self, message: M, ) -> Pin<Box<dyn Future<Output = Result<(), DeliveryError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

impl<M: MessageMetadata, T: LocalDelivery<M> + ?Sized> LocalDelivery<M> for Box<T>

Source§

fn deliver<'life0, 'async_trait>( &'life0 self, message: M, ) -> Pin<Box<dyn Future<Output = Result<(), DeliveryError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

impl<M: MessageMetadata, T: LocalDelivery<M> + ?Sized> LocalDelivery<M> for Arc<T>

Source§

fn deliver<'life0, 'async_trait>( &'life0 self, message: M, ) -> Pin<Box<dyn Future<Output = Result<(), DeliveryError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§