pub trait Consume {
type Item: Ord + 'static;
// Required method
fn consume<'life0, 'async_trait, R>(
reader: R,
header: &'life0 BlockHeader,
) -> Pin<Box<dyn Future<Output = Result<Self::Item>> + Send + 'async_trait>>
where R: 'async_trait + AsyncRead + AsyncSeek + Unpin + Send,
Self: 'async_trait,
'life0: 'async_trait;
}Required Associated Types§
Required Methods§
fn consume<'life0, 'async_trait, R>( reader: R, header: &'life0 BlockHeader, ) -> Pin<Box<dyn Future<Output = Result<Self::Item>> + Send + '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.