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 SharedCell
s of different types in a single pool.