pub trait SharedCellDiscard {
// Required methods
fn discard<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), EmptyCellError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn blocking_discard(&self) -> Result<(), EmptyCellError>;
fn try_discard(&self) -> Result<(), TryTakeError>;
}Expand description
Trait to facilitate storing SharedCells of different types in a single pool.
Required Methods§
fn discard<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), EmptyCellError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn blocking_discard(&self) -> Result<(), EmptyCellError>
fn try_discard(&self) -> Result<(), TryTakeError>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".