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§
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,
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.