pub trait IOutBox<E: Executor> {
    // Required methods
    fn add<'async_trait>(
        executor: Arc<RwLock<E>>,
        outboxes: Vec<OutBox>
    ) -> Pin<Box<dyn Future<Output = Result<(), BaseError>> + Send + 'async_trait>>;
    fn get<'async_trait>(
    ) -> Pin<Box<dyn Future<Output = Result<Vec<Box<Self>>, BaseError>> + Send + 'async_trait>>
       where Self: 'async_trait;
    fn update<'life0, 'async_trait>(
        &'life0 self,
        executor: Arc<RwLock<E>>
    ) -> Pin<Box<dyn Future<Output = Result<(), BaseError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

source

fn add<'async_trait>( executor: Arc<RwLock<E>>, outboxes: Vec<OutBox> ) -> Pin<Box<dyn Future<Output = Result<(), BaseError>> + Send + 'async_trait>>

source

fn get<'async_trait>( ) -> Pin<Box<dyn Future<Output = Result<Vec<Box<Self>>, BaseError>> + Send + 'async_trait>>where Self: 'async_trait,

source

fn update<'life0, 'async_trait>( &'life0 self, executor: Arc<RwLock<E>> ) -> Pin<Box<dyn Future<Output = Result<(), BaseError>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

Object Safety§

This trait is not object safe.

Implementors§