Trait CancelableAsyncReadRentExt

Source
pub trait CancelableAsyncReadRentExt {
Show 26 methods // Required methods fn cancelable_read_exact<T: IoBufMut + 'static>( &mut self, buf: T, c: CancelHandle, ) -> impl Future<Output = BufResult<usize, T>>; fn cancelable_read_vectored_exact<T: IoVecBufMut + 'static>( &mut self, buf: T, c: CancelHandle, ) -> impl Future<Output = BufResult<usize, T>>; fn cancelable_read_u8( &mut self, c: CancelHandle, ) -> impl Future<Output = Result<u8>>; fn cancelable_read_u16( &mut self, c: CancelHandle, ) -> impl Future<Output = Result<u16>>; fn cancelable_read_u32( &mut self, c: CancelHandle, ) -> impl Future<Output = Result<u32>>; fn cancelable_read_u64( &mut self, c: CancelHandle, ) -> impl Future<Output = Result<u64>>; fn cancelable_read_u128( &mut self, c: CancelHandle, ) -> impl Future<Output = Result<u128>>; fn cancelable_read_i8( &mut self, c: CancelHandle, ) -> impl Future<Output = Result<i8>>; fn cancelable_read_i16( &mut self, c: CancelHandle, ) -> impl Future<Output = Result<i16>>; fn cancelable_read_i32( &mut self, c: CancelHandle, ) -> impl Future<Output = Result<i32>>; fn cancelable_read_i64( &mut self, c: CancelHandle, ) -> impl Future<Output = Result<i64>>; fn cancelable_read_i128( &mut self, c: CancelHandle, ) -> impl Future<Output = Result<i128>>; fn cancelable_read_f32( &mut self, c: CancelHandle, ) -> impl Future<Output = Result<f32>>; fn cancelable_read_f64( &mut self, c: CancelHandle, ) -> impl Future<Output = Result<f64>>; fn cancelable_read_u8_le( &mut self, c: CancelHandle, ) -> impl Future<Output = Result<u8>>; fn cancelable_read_u16_le( &mut self, c: CancelHandle, ) -> impl Future<Output = Result<u16>>; fn cancelable_read_u32_le( &mut self, c: CancelHandle, ) -> impl Future<Output = Result<u32>>; fn cancelable_read_u64_le( &mut self, c: CancelHandle, ) -> impl Future<Output = Result<u64>>; fn cancelable_read_u128_le( &mut self, c: CancelHandle, ) -> impl Future<Output = Result<u128>>; fn cancelable_read_i8_le( &mut self, c: CancelHandle, ) -> impl Future<Output = Result<i8>>; fn cancelable_read_i16_le( &mut self, c: CancelHandle, ) -> impl Future<Output = Result<i16>>; fn cancelable_read_i32_le( &mut self, c: CancelHandle, ) -> impl Future<Output = Result<i32>>; fn cancelable_read_i64_le( &mut self, c: CancelHandle, ) -> impl Future<Output = Result<i64>>; fn cancelable_read_i128_le( &mut self, c: CancelHandle, ) -> impl Future<Output = Result<i128>>; fn cancelable_read_f32_le( &mut self, c: CancelHandle, ) -> impl Future<Output = Result<f32>>; fn cancelable_read_f64_le( &mut self, c: CancelHandle, ) -> impl Future<Output = Result<f64>>;
}
Expand description

CancelableAsyncReadRentExt

Required Methods§

Source

fn cancelable_read_exact<T: IoBufMut + 'static>( &mut self, buf: T, c: CancelHandle, ) -> impl Future<Output = BufResult<usize, T>>

Read until buf capacity is fulfilled

Source

fn cancelable_read_vectored_exact<T: IoVecBufMut + 'static>( &mut self, buf: T, c: CancelHandle, ) -> impl Future<Output = BufResult<usize, T>>

Readv until buf capacity is fulfilled

Source

fn cancelable_read_u8( &mut self, c: CancelHandle, ) -> impl Future<Output = Result<u8>>

Read number in async way

Source

fn cancelable_read_u16( &mut self, c: CancelHandle, ) -> impl Future<Output = Result<u16>>

Read number in async way

Source

fn cancelable_read_u32( &mut self, c: CancelHandle, ) -> impl Future<Output = Result<u32>>

Read number in async way

Source

fn cancelable_read_u64( &mut self, c: CancelHandle, ) -> impl Future<Output = Result<u64>>

Read number in async way

Source

fn cancelable_read_u128( &mut self, c: CancelHandle, ) -> impl Future<Output = Result<u128>>

Read number in async way

Source

fn cancelable_read_i8( &mut self, c: CancelHandle, ) -> impl Future<Output = Result<i8>>

Read number in async way

Source

fn cancelable_read_i16( &mut self, c: CancelHandle, ) -> impl Future<Output = Result<i16>>

Read number in async way

Source

fn cancelable_read_i32( &mut self, c: CancelHandle, ) -> impl Future<Output = Result<i32>>

Read number in async way

Source

fn cancelable_read_i64( &mut self, c: CancelHandle, ) -> impl Future<Output = Result<i64>>

Read number in async way

Source

fn cancelable_read_i128( &mut self, c: CancelHandle, ) -> impl Future<Output = Result<i128>>

Read number in async way

Source

fn cancelable_read_f32( &mut self, c: CancelHandle, ) -> impl Future<Output = Result<f32>>

Read number in async way

Source

fn cancelable_read_f64( &mut self, c: CancelHandle, ) -> impl Future<Output = Result<f64>>

Read number in async way

Source

fn cancelable_read_u8_le( &mut self, c: CancelHandle, ) -> impl Future<Output = Result<u8>>

Read number in async way

Source

fn cancelable_read_u16_le( &mut self, c: CancelHandle, ) -> impl Future<Output = Result<u16>>

Read number in async way

Source

fn cancelable_read_u32_le( &mut self, c: CancelHandle, ) -> impl Future<Output = Result<u32>>

Read number in async way

Source

fn cancelable_read_u64_le( &mut self, c: CancelHandle, ) -> impl Future<Output = Result<u64>>

Read number in async way

Source

fn cancelable_read_u128_le( &mut self, c: CancelHandle, ) -> impl Future<Output = Result<u128>>

Read number in async way

Source

fn cancelable_read_i8_le( &mut self, c: CancelHandle, ) -> impl Future<Output = Result<i8>>

Read number in async way

Source

fn cancelable_read_i16_le( &mut self, c: CancelHandle, ) -> impl Future<Output = Result<i16>>

Read number in async way

Source

fn cancelable_read_i32_le( &mut self, c: CancelHandle, ) -> impl Future<Output = Result<i32>>

Read number in async way

Source

fn cancelable_read_i64_le( &mut self, c: CancelHandle, ) -> impl Future<Output = Result<i64>>

Read number in async way

Source

fn cancelable_read_i128_le( &mut self, c: CancelHandle, ) -> impl Future<Output = Result<i128>>

Read number in async way

Source

fn cancelable_read_f32_le( &mut self, c: CancelHandle, ) -> impl Future<Output = Result<f32>>

Read number in async way

Source

fn cancelable_read_f64_le( &mut self, c: CancelHandle, ) -> impl Future<Output = Result<f64>>

Read number in async way

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.

Implementors§