pub trait FixedIntAsyncReader {
// Required method
fn read_fixedint_async<'life0, 'async_trait, FI>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<FI>> + 'async_trait>>
where FI: 'async_trait + FixedInt,
Self: 'async_trait,
'life0: 'async_trait;
}
Expand description
Like FixedIntReader, but returns a future.
Required Methods§
fn read_fixedint_async<'life0, 'async_trait, FI>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<FI>> + 'async_trait>>where
FI: 'async_trait + FixedInt,
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.