Trait darkfi_serial::async_lib::AsyncWriteExt

source ·
pub trait AsyncWriteExt {
Show 14 methods // Required methods fn write_u128_async<'life0, 'async_trait>( &'life0 mut self, v: u128, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn write_u64_async<'life0, 'async_trait>( &'life0 mut self, v: u64, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn write_u32_async<'life0, 'async_trait>( &'life0 mut self, v: u32, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn write_u16_async<'life0, 'async_trait>( &'life0 mut self, v: u16, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn write_u8_async<'life0, 'async_trait>( &'life0 mut self, v: u8, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn write_i128_async<'life0, 'async_trait>( &'life0 mut self, v: i128, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn write_i64_async<'life0, 'async_trait>( &'life0 mut self, v: i64, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn write_i32_async<'life0, 'async_trait>( &'life0 mut self, v: i32, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn write_i16_async<'life0, 'async_trait>( &'life0 mut self, v: i16, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn write_i8_async<'life0, 'async_trait>( &'life0 mut self, v: i8, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn write_f64_async<'life0, 'async_trait>( &'life0 mut self, v: f64, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn write_f32_async<'life0, 'async_trait>( &'life0 mut self, v: f32, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn write_bool_async<'life0, 'async_trait>( &'life0 mut self, v: bool, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn write_slice_async<'life0, 'life1, 'async_trait>( &'life0 mut self, v: &'life1 [u8], ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait;
}
Expand description

Extensions of AsyncWrite to encode data as per Bitcoin consensus.

Required Methods§

source

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

Output a 128-bit unsigned int

source

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

Output a 64-bit unsigned int

source

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

Output a 32-bit unsigned int

source

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

Output a 16-bit unsigned int

source

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

Output an 8-bit unsigned int

source

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

Output a 128-bit signed int

source

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

Output a 64-bit signed int

source

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

Ouptut a 32-bit signed int

source

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

Output a 16-bit signed int

source

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

Output an 8-bit signed int

source

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

Output a 64-bit floating point int

source

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

Output a 32-bit floating point int

source

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

Output a boolean

source

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

Output a byte slice

Implementors§