Struct monoio_http::util::split::OwnedReadHalf
source · [−]pub struct OwnedReadHalf<T>(_);
Expand description
OwnedReadHalf.
Trait Implementations
sourceimpl<IO> AsyncReadRent for OwnedReadHalf<IO>where
IO: AsyncReadRent,
impl<IO> AsyncReadRent for OwnedReadHalf<IO>where
IO: AsyncReadRent,
type ReadFuture<'a, B>
where
B: IoBufMut + 'a,
Self: 'a = impl Future<Output = (Result<usize, Error>, B)>
type ReadFuture<'a, B>
where
B: IoBufMut + 'a,
Self: 'a = impl Future<Output = (Result<usize, Error>, B)>
The future of read Result<size, buffer>
type ReadvFuture<'a, B>
where
B: IoVecBufMut + 'a,
Self: 'a = impl Future<Output = (Result<usize, Error>, B)>
type ReadvFuture<'a, B>
where
B: IoVecBufMut + 'a,
Self: 'a = impl Future<Output = (Result<usize, Error>, B)>
The future of readv Result<size, buffer>
sourcefn read<T: IoBufMut>(&mut self, buf: T) -> Self::ReadFuture<'_, T>
fn read<T: IoBufMut>(&mut self, buf: T) -> Self::ReadFuture<'_, T>
Same as read(2)
sourcefn readv<T: IoVecBufMut>(&mut self, buf: T) -> Self::ReadvFuture<'_, T>
fn readv<T: IoVecBufMut>(&mut self, buf: T) -> Self::ReadvFuture<'_, T>
Same as readv(2)
Auto Trait Implementations
impl<T> !RefUnwindSafe for OwnedReadHalf<T>
impl<T> !Send for OwnedReadHalf<T>
impl<T> !Sync for OwnedReadHalf<T>
impl<T> Unpin for OwnedReadHalf<T>
impl<T> !UnwindSafe for OwnedReadHalf<T>
Blanket Implementations
sourceimpl<A> AsyncReadRentExt for Awhere
A: AsyncReadRent + ?Sized,
impl<A> AsyncReadRentExt for Awhere
A: AsyncReadRent + ?Sized,
type ReadExactFuture = impl Future<Output = (Result<usize, Error>, T)>
type ReadExactFuture = impl Future<Output = (Result<usize, Error>, T)>
The future of Result<size, buffer>
sourcefn read_exact<T>(
&mut self,
buf: T
) -> <A as AsyncReadRentExt>::ReadExactFuture<'_, T>where
T: 'static + IoBufMut,
fn read_exact<T>(
&mut self,
buf: T
) -> <A as AsyncReadRentExt>::ReadExactFuture<'_, T>where
T: 'static + IoBufMut,
Read until buf capacity is fulfilled
type ReadVectoredExactFuture = impl Future<Output = (Result<usize, Error>, T)>
type ReadVectoredExactFuture = impl Future<Output = (Result<usize, Error>, T)>
The future of Result<size, buffer>
sourcefn read_vectored_exact<T>(
&mut self,
buf: T
) -> <A as AsyncReadRentExt>::ReadVectoredExactFuture<'_, T>where
T: 'static + IoVecBufMut,
fn read_vectored_exact<T>(
&mut self,
buf: T
) -> <A as AsyncReadRentExt>::ReadVectoredExactFuture<'_, T>where
T: 'static + IoVecBufMut,
Readv until buf capacity is fulfilled
type ReadU8Future = impl Future<Output = Result<u8, Error>>
type ReadU8Future = impl Future<Output = Result<u8, Error>>
Read number result
sourcefn read_u8(&mut self) -> <A as AsyncReadRentExt>::ReadU8Future<'_>
fn read_u8(&mut self) -> <A as AsyncReadRentExt>::ReadU8Future<'_>
Read number in async way
type ReadU16Future = impl Future<Output = Result<u16, Error>>
type ReadU16Future = impl Future<Output = Result<u16, Error>>
Read number result
sourcefn read_u16(&mut self) -> <A as AsyncReadRentExt>::ReadU16Future<'_>
fn read_u16(&mut self) -> <A as AsyncReadRentExt>::ReadU16Future<'_>
Read number in async way
type ReadU32Future = impl Future<Output = Result<u32, Error>>
type ReadU32Future = impl Future<Output = Result<u32, Error>>
Read number result
sourcefn read_u32(&mut self) -> <A as AsyncReadRentExt>::ReadU32Future<'_>
fn read_u32(&mut self) -> <A as AsyncReadRentExt>::ReadU32Future<'_>
Read number in async way
type ReadU64Future = impl Future<Output = Result<u64, Error>>
type ReadU64Future = impl Future<Output = Result<u64, Error>>
Read number result
sourcefn read_u64(&mut self) -> <A as AsyncReadRentExt>::ReadU64Future<'_>
fn read_u64(&mut self) -> <A as AsyncReadRentExt>::ReadU64Future<'_>
Read number in async way
type ReadU128Future = impl Future<Output = Result<u16, Error>>
type ReadU128Future = impl Future<Output = Result<u16, Error>>
Read number result
sourcefn read_u128(&mut self) -> <A as AsyncReadRentExt>::ReadU128Future<'_>
fn read_u128(&mut self) -> <A as AsyncReadRentExt>::ReadU128Future<'_>
Read number in async way
type ReadI8Future = impl Future<Output = Result<i8, Error>>
type ReadI8Future = impl Future<Output = Result<i8, Error>>
Read number result
sourcefn read_i8(&mut self) -> <A as AsyncReadRentExt>::ReadI8Future<'_>
fn read_i8(&mut self) -> <A as AsyncReadRentExt>::ReadI8Future<'_>
Read number in async way
type ReadI16Future = impl Future<Output = Result<i16, Error>>
type ReadI16Future = impl Future<Output = Result<i16, Error>>
Read number result
sourcefn read_i16(&mut self) -> <A as AsyncReadRentExt>::ReadI16Future<'_>
fn read_i16(&mut self) -> <A as AsyncReadRentExt>::ReadI16Future<'_>
Read number in async way
type ReadI32Future = impl Future<Output = Result<i32, Error>>
type ReadI32Future = impl Future<Output = Result<i32, Error>>
Read number result
sourcefn read_i32(&mut self) -> <A as AsyncReadRentExt>::ReadI32Future<'_>
fn read_i32(&mut self) -> <A as AsyncReadRentExt>::ReadI32Future<'_>
Read number in async way
type ReadI64Future = impl Future<Output = Result<i64, Error>>
type ReadI64Future = impl Future<Output = Result<i64, Error>>
Read number result
sourcefn read_i64(&mut self) -> <A as AsyncReadRentExt>::ReadI64Future<'_>
fn read_i64(&mut self) -> <A as AsyncReadRentExt>::ReadI64Future<'_>
Read number in async way
type ReadI128Future = impl Future<Output = Result<i128, Error>>
type ReadI128Future = impl Future<Output = Result<i128, Error>>
Read number result
sourcefn read_i128(&mut self) -> <A as AsyncReadRentExt>::ReadI128Future<'_>
fn read_i128(&mut self) -> <A as AsyncReadRentExt>::ReadI128Future<'_>
Read number in async way
type ReadF32Future = impl Future<Output = Result<f32, Error>>
type ReadF32Future = impl Future<Output = Result<f32, Error>>
Read number result
sourcefn read_f32(&mut self) -> <A as AsyncReadRentExt>::ReadF32Future<'_>
fn read_f32(&mut self) -> <A as AsyncReadRentExt>::ReadF32Future<'_>
Read number in async way
type ReadF64Future = impl Future<Output = Result<f64, Error>>
type ReadF64Future = impl Future<Output = Result<f64, Error>>
Read number result
sourcefn read_f64(&mut self) -> <A as AsyncReadRentExt>::ReadF64Future<'_>
fn read_f64(&mut self) -> <A as AsyncReadRentExt>::ReadF64Future<'_>
Read number in async way
type ReadU8LEFuture = impl Future<Output = Result<u8, Error>>
type ReadU8LEFuture = impl Future<Output = Result<u8, Error>>
Read number result
sourcefn read_u8_le(&mut self) -> <A as AsyncReadRentExt>::ReadU8LEFuture<'_>
fn read_u8_le(&mut self) -> <A as AsyncReadRentExt>::ReadU8LEFuture<'_>
Read number in async way
type ReadU16LEFuture = impl Future<Output = Result<u16, Error>>
type ReadU16LEFuture = impl Future<Output = Result<u16, Error>>
Read number result
sourcefn read_u16_le(&mut self) -> <A as AsyncReadRentExt>::ReadU16LEFuture<'_>
fn read_u16_le(&mut self) -> <A as AsyncReadRentExt>::ReadU16LEFuture<'_>
Read number in async way
type ReadU32LEFuture = impl Future<Output = Result<u32, Error>>
type ReadU32LEFuture = impl Future<Output = Result<u32, Error>>
Read number result
sourcefn read_u32_le(&mut self) -> <A as AsyncReadRentExt>::ReadU32LEFuture<'_>
fn read_u32_le(&mut self) -> <A as AsyncReadRentExt>::ReadU32LEFuture<'_>
Read number in async way
type ReadU64LEFuture = impl Future<Output = Result<u64, Error>>
type ReadU64LEFuture = impl Future<Output = Result<u64, Error>>
Read number result
sourcefn read_u64_le(&mut self) -> <A as AsyncReadRentExt>::ReadU64LEFuture<'_>
fn read_u64_le(&mut self) -> <A as AsyncReadRentExt>::ReadU64LEFuture<'_>
Read number in async way
type ReadU128LEFuture = impl Future<Output = Result<u16, Error>>
type ReadU128LEFuture = impl Future<Output = Result<u16, Error>>
Read number result
sourcefn read_u128_le(&mut self) -> <A as AsyncReadRentExt>::ReadU128LEFuture<'_>
fn read_u128_le(&mut self) -> <A as AsyncReadRentExt>::ReadU128LEFuture<'_>
Read number in async way
type ReadI8LEFuture = impl Future<Output = Result<i8, Error>>
type ReadI8LEFuture = impl Future<Output = Result<i8, Error>>
Read number result
sourcefn read_i8_le(&mut self) -> <A as AsyncReadRentExt>::ReadI8LEFuture<'_>
fn read_i8_le(&mut self) -> <A as AsyncReadRentExt>::ReadI8LEFuture<'_>
Read number in async way
type ReadI16LEFuture = impl Future<Output = Result<i16, Error>>
type ReadI16LEFuture = impl Future<Output = Result<i16, Error>>
Read number result
sourcefn read_i16_le(&mut self) -> <A as AsyncReadRentExt>::ReadI16LEFuture<'_>
fn read_i16_le(&mut self) -> <A as AsyncReadRentExt>::ReadI16LEFuture<'_>
Read number in async way
type ReadI32LEFuture = impl Future<Output = Result<i32, Error>>
type ReadI32LEFuture = impl Future<Output = Result<i32, Error>>
Read number result
sourcefn read_i32_le(&mut self) -> <A as AsyncReadRentExt>::ReadI32LEFuture<'_>
fn read_i32_le(&mut self) -> <A as AsyncReadRentExt>::ReadI32LEFuture<'_>
Read number in async way
type ReadI64LEFuture = impl Future<Output = Result<i64, Error>>
type ReadI64LEFuture = impl Future<Output = Result<i64, Error>>
Read number result
sourcefn read_i64_le(&mut self) -> <A as AsyncReadRentExt>::ReadI64LEFuture<'_>
fn read_i64_le(&mut self) -> <A as AsyncReadRentExt>::ReadI64LEFuture<'_>
Read number in async way
type ReadI128LEFuture = impl Future<Output = Result<i128, Error>>
type ReadI128LEFuture = impl Future<Output = Result<i128, Error>>
Read number result
sourcefn read_i128_le(&mut self) -> <A as AsyncReadRentExt>::ReadI128LEFuture<'_>
fn read_i128_le(&mut self) -> <A as AsyncReadRentExt>::ReadI128LEFuture<'_>
Read number in async way
type ReadF32LEFuture = impl Future<Output = Result<f32, Error>>
type ReadF32LEFuture = impl Future<Output = Result<f32, Error>>
Read number result
sourcefn read_f32_le(&mut self) -> <A as AsyncReadRentExt>::ReadF32LEFuture<'_>
fn read_f32_le(&mut self) -> <A as AsyncReadRentExt>::ReadF32LEFuture<'_>
Read number in async way
type ReadF64LEFuture = impl Future<Output = Result<f64, Error>>
type ReadF64LEFuture = impl Future<Output = Result<f64, Error>>
Read number result
sourcefn read_f64_le(&mut self) -> <A as AsyncReadRentExt>::ReadF64LEFuture<'_>
fn read_f64_le(&mut self) -> <A as AsyncReadRentExt>::ReadF64LEFuture<'_>
Read number in async way
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more