pub trait AsyncReadExt {
Show 14 methods // Required methods fn read_u128_async<'life0, 'async_trait>( &'life0 mut self ) -> Pin<Box<dyn Future<Output = Result<u128>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn read_u64_async<'life0, 'async_trait>( &'life0 mut self ) -> Pin<Box<dyn Future<Output = Result<u64>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn read_u32_async<'life0, 'async_trait>( &'life0 mut self ) -> Pin<Box<dyn Future<Output = Result<u32>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn read_u16_async<'life0, 'async_trait>( &'life0 mut self ) -> Pin<Box<dyn Future<Output = Result<u16>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn read_u8_async<'life0, 'async_trait>( &'life0 mut self ) -> Pin<Box<dyn Future<Output = Result<u8>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn read_i128_async<'life0, 'async_trait>( &'life0 mut self ) -> Pin<Box<dyn Future<Output = Result<i128>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn read_i64_async<'life0, 'async_trait>( &'life0 mut self ) -> Pin<Box<dyn Future<Output = Result<i64>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn read_i32_async<'life0, 'async_trait>( &'life0 mut self ) -> Pin<Box<dyn Future<Output = Result<i32>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn read_i16_async<'life0, 'async_trait>( &'life0 mut self ) -> Pin<Box<dyn Future<Output = Result<i16>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn read_i8_async<'life0, 'async_trait>( &'life0 mut self ) -> Pin<Box<dyn Future<Output = Result<i8>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn read_f64_async<'life0, 'async_trait>( &'life0 mut self ) -> Pin<Box<dyn Future<Output = Result<f64>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn read_f32_async<'life0, 'async_trait>( &'life0 mut self ) -> Pin<Box<dyn Future<Output = Result<f32>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn read_bool_async<'life0, 'async_trait>( &'life0 mut self ) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn read_slice_async<'life0, 'life1, 'async_trait>( &'life0 mut self, slice: &'life1 mut [u8] ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait;
}
Expand description

Extensions of AsyncRead to decode data as per Bitcoin consensus.

Required Methods§

source

fn read_u128_async<'life0, 'async_trait>( &'life0 mut self ) -> Pin<Box<dyn Future<Output = Result<u128>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Read a 128-bit unsigned int

source

fn read_u64_async<'life0, 'async_trait>( &'life0 mut self ) -> Pin<Box<dyn Future<Output = Result<u64>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Read a 64-bit unsigned int

source

fn read_u32_async<'life0, 'async_trait>( &'life0 mut self ) -> Pin<Box<dyn Future<Output = Result<u32>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Read a 32-bit unsigned int

source

fn read_u16_async<'life0, 'async_trait>( &'life0 mut self ) -> Pin<Box<dyn Future<Output = Result<u16>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Read a 16-bit unsigned int

source

fn read_u8_async<'life0, 'async_trait>( &'life0 mut self ) -> Pin<Box<dyn Future<Output = Result<u8>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Read an 8-bit unsigned int

source

fn read_i128_async<'life0, 'async_trait>( &'life0 mut self ) -> Pin<Box<dyn Future<Output = Result<i128>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Read a 128-bit signed int

source

fn read_i64_async<'life0, 'async_trait>( &'life0 mut self ) -> Pin<Box<dyn Future<Output = Result<i64>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Read a 64-bit signed int

source

fn read_i32_async<'life0, 'async_trait>( &'life0 mut self ) -> Pin<Box<dyn Future<Output = Result<i32>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Ouptut a 32-bit signed int

source

fn read_i16_async<'life0, 'async_trait>( &'life0 mut self ) -> Pin<Box<dyn Future<Output = Result<i16>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Read a 16-bit signed int

source

fn read_i8_async<'life0, 'async_trait>( &'life0 mut self ) -> Pin<Box<dyn Future<Output = Result<i8>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Read an 8-bit signed int

source

fn read_f64_async<'life0, 'async_trait>( &'life0 mut self ) -> Pin<Box<dyn Future<Output = Result<f64>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Read a 64-bit floating point int

source

fn read_f32_async<'life0, 'async_trait>( &'life0 mut self ) -> Pin<Box<dyn Future<Output = Result<f32>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Read a 32-bit floating point int

source

fn read_bool_async<'life0, 'async_trait>( &'life0 mut self ) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Read a boolean

source

fn read_slice_async<'life0, 'life1, 'async_trait>( &'life0 mut self, slice: &'life1 mut [u8] ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Read a byte slice

Implementors§