pub trait AsyncReadRentExt {
Show 26 methods
// Required methods
fn read_exact<T: IoBufMut + 'static>(
&mut self,
buf: T,
) -> impl Future<Output = BufResult<usize, T>>;
fn read_vectored_exact<T: IoVecBufMut + 'static>(
&mut self,
buf: T,
) -> impl Future<Output = BufResult<usize, T>>;
fn read_u8(&mut self) -> impl Future<Output = Result<u8>>;
fn read_u16(&mut self) -> impl Future<Output = Result<u16>>;
fn read_u32(&mut self) -> impl Future<Output = Result<u32>>;
fn read_u64(&mut self) -> impl Future<Output = Result<u64>>;
fn read_u128(&mut self) -> impl Future<Output = Result<u16>>;
fn read_i8(&mut self) -> impl Future<Output = Result<i8>>;
fn read_i16(&mut self) -> impl Future<Output = Result<i16>>;
fn read_i32(&mut self) -> impl Future<Output = Result<i32>>;
fn read_i64(&mut self) -> impl Future<Output = Result<i64>>;
fn read_i128(&mut self) -> impl Future<Output = Result<i128>>;
fn read_f32(&mut self) -> impl Future<Output = Result<f32>>;
fn read_f64(&mut self) -> impl Future<Output = Result<f64>>;
fn read_u8_le(&mut self) -> impl Future<Output = Result<u8>>;
fn read_u16_le(&mut self) -> impl Future<Output = Result<u16>>;
fn read_u32_le(&mut self) -> impl Future<Output = Result<u32>>;
fn read_u64_le(&mut self) -> impl Future<Output = Result<u64>>;
fn read_u128_le(&mut self) -> impl Future<Output = Result<u128>>;
fn read_i8_le(&mut self) -> impl Future<Output = Result<i8>>;
fn read_i16_le(&mut self) -> impl Future<Output = Result<i16>>;
fn read_i32_le(&mut self) -> impl Future<Output = Result<i32>>;
fn read_i64_le(&mut self) -> impl Future<Output = Result<i64>>;
fn read_i128_le(&mut self) -> impl Future<Output = Result<i128>>;
fn read_f32_le(&mut self) -> impl Future<Output = Result<f32>>;
fn read_f64_le(&mut self) -> impl Future<Output = Result<f64>>;
}
Expand description
AsyncReadRentExt
Required Methods§
Sourcefn read_exact<T: IoBufMut + 'static>(
&mut self,
buf: T,
) -> impl Future<Output = BufResult<usize, T>>
fn read_exact<T: IoBufMut + 'static>( &mut self, buf: T, ) -> impl Future<Output = BufResult<usize, T>>
Read until buf capacity is fulfilled
Sourcefn read_vectored_exact<T: IoVecBufMut + 'static>(
&mut self,
buf: T,
) -> impl Future<Output = BufResult<usize, T>>
fn read_vectored_exact<T: IoVecBufMut + 'static>( &mut self, buf: T, ) -> impl Future<Output = BufResult<usize, T>>
Readv until buf capacity is fulfilled
Sourcefn read_u8_le(&mut self) -> impl Future<Output = Result<u8>>
fn read_u8_le(&mut self) -> impl Future<Output = Result<u8>>
Read number in async way
Sourcefn read_u16_le(&mut self) -> impl Future<Output = Result<u16>>
fn read_u16_le(&mut self) -> impl Future<Output = Result<u16>>
Read number in async way
Sourcefn read_u32_le(&mut self) -> impl Future<Output = Result<u32>>
fn read_u32_le(&mut self) -> impl Future<Output = Result<u32>>
Read number in async way
Sourcefn read_u64_le(&mut self) -> impl Future<Output = Result<u64>>
fn read_u64_le(&mut self) -> impl Future<Output = Result<u64>>
Read number in async way
Sourcefn read_u128_le(&mut self) -> impl Future<Output = Result<u128>>
fn read_u128_le(&mut self) -> impl Future<Output = Result<u128>>
Read number in async way
Sourcefn read_i8_le(&mut self) -> impl Future<Output = Result<i8>>
fn read_i8_le(&mut self) -> impl Future<Output = Result<i8>>
Read number in async way
Sourcefn read_i16_le(&mut self) -> impl Future<Output = Result<i16>>
fn read_i16_le(&mut self) -> impl Future<Output = Result<i16>>
Read number in async way
Sourcefn read_i32_le(&mut self) -> impl Future<Output = Result<i32>>
fn read_i32_le(&mut self) -> impl Future<Output = Result<i32>>
Read number in async way
Sourcefn read_i64_le(&mut self) -> impl Future<Output = Result<i64>>
fn read_i64_le(&mut self) -> impl Future<Output = Result<i64>>
Read number in async way
Sourcefn read_i128_le(&mut self) -> impl Future<Output = Result<i128>>
fn read_i128_le(&mut self) -> impl Future<Output = Result<i128>>
Read number in async way
Sourcefn read_f32_le(&mut self) -> impl Future<Output = Result<f32>>
fn read_f32_le(&mut self) -> impl Future<Output = Result<f32>>
Read number in async way
Sourcefn read_f64_le(&mut self) -> impl Future<Output = Result<f64>>
fn read_f64_le(&mut self) -> 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.