Skip to main content

FromBitReaderWithLength

Trait FromBitReaderWithLength 

Source
pub trait FromBitReaderWithLength<E, R>
where Self: Sized, R: Read + Unpin + Send,
{ // Required method fn from_bitreader_with_length<'life0, 'async_trait>( reader: &'life0 mut BitReader<R>, len: usize, ) -> Pin<Box<dyn Future<Output = Result<Self, E>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; }

Required Methods§

Source

fn from_bitreader_with_length<'life0, 'async_trait>( reader: &'life0 mut BitReader<R>, len: usize, ) -> Pin<Box<dyn Future<Output = Result<Self, E>> + 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.

Implementations on Foreign Types§

Source§

impl<R> FromBitReaderWithLength<BitReaderError, R> for Vec<u8>
where R: Read + Unpin + Send,

Source§

fn from_bitreader_with_length<'life0, 'async_trait>( reader: &'life0 mut BitReader<R>, len: usize, ) -> Pin<Box<dyn Future<Output = Result<Vec<u8>>> + Send + 'async_trait>>
where 'life0: 'async_trait,

Implementors§