Struct monoio_http::util::split::OwnedReadHalf
source · pub struct OwnedReadHalf<T>(_);
Expand description
OwnedReadHalf.
Trait Implementations§
source§impl<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)> + 'a
type ReadFuture<'a, B> where B: IoBufMut + 'a, Self: 'a = impl Future<Output = (Result<usize, Error>, B)> + 'a
The future of read Result<size, buffer>
§type ReadvFuture<'a, B>
where
B: IoVecBufMut + 'a,
Self: 'a = impl Future<Output = (Result<usize, Error>, B)> + 'a
type ReadvFuture<'a, B> where B: IoVecBufMut + 'a, Self: 'a = impl Future<Output = (Result<usize, Error>, B)> + 'a
The future of readv Result<size, buffer>
source§fn 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)
source§fn 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§
source§impl<A> AsyncReadRentExt for Awhere
A: AsyncReadRent + ?Sized,
impl<A> AsyncReadRentExt for Awhere A: AsyncReadRent + ?Sized,
§type ReadExactFuture = impl Future<Output = (Result<usize, Error>, T)> + 'a
type ReadExactFuture = impl Future<Output = (Result<usize, Error>, T)> + 'a
The future of Result<size, buffer>
source§fn 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)> + 'a
type ReadVectoredExactFuture = impl Future<Output = (Result<usize, Error>, T)> + 'a
The future of Result<size, buffer>
source§fn 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
source§fn read_u8(&mut self) -> <A as AsyncReadRentExt>::ReadU8Future<'_>
fn read_u8(&mut self) -> <A as AsyncReadRentExt>::ReadU8Future<'_>
Read number in async way
source§fn read_u16(&mut self) -> <A as AsyncReadRentExt>::ReadU16Future<'_>
fn read_u16(&mut self) -> <A as AsyncReadRentExt>::ReadU16Future<'_>
Read number in async way
source§fn read_u32(&mut self) -> <A as AsyncReadRentExt>::ReadU32Future<'_>
fn read_u32(&mut self) -> <A as AsyncReadRentExt>::ReadU32Future<'_>
Read number in async way
source§fn read_u64(&mut self) -> <A as AsyncReadRentExt>::ReadU64Future<'_>
fn read_u64(&mut self) -> <A as AsyncReadRentExt>::ReadU64Future<'_>
Read number in async way
source§fn read_u128(&mut self) -> <A as AsyncReadRentExt>::ReadU128Future<'_>
fn read_u128(&mut self) -> <A as AsyncReadRentExt>::ReadU128Future<'_>
Read number in async way
source§fn read_i8(&mut self) -> <A as AsyncReadRentExt>::ReadI8Future<'_>
fn read_i8(&mut self) -> <A as AsyncReadRentExt>::ReadI8Future<'_>
Read number in async way
source§fn read_i16(&mut self) -> <A as AsyncReadRentExt>::ReadI16Future<'_>
fn read_i16(&mut self) -> <A as AsyncReadRentExt>::ReadI16Future<'_>
Read number in async way
source§fn read_i32(&mut self) -> <A as AsyncReadRentExt>::ReadI32Future<'_>
fn read_i32(&mut self) -> <A as AsyncReadRentExt>::ReadI32Future<'_>
Read number in async way
source§fn read_i64(&mut self) -> <A as AsyncReadRentExt>::ReadI64Future<'_>
fn read_i64(&mut self) -> <A as AsyncReadRentExt>::ReadI64Future<'_>
Read number in async way
source§fn read_i128(&mut self) -> <A as AsyncReadRentExt>::ReadI128Future<'_>
fn read_i128(&mut self) -> <A as AsyncReadRentExt>::ReadI128Future<'_>
Read number in async way
source§fn read_f32(&mut self) -> <A as AsyncReadRentExt>::ReadF32Future<'_>
fn read_f32(&mut self) -> <A as AsyncReadRentExt>::ReadF32Future<'_>
Read number in async way
source§fn read_f64(&mut self) -> <A as AsyncReadRentExt>::ReadF64Future<'_>
fn read_f64(&mut self) -> <A as AsyncReadRentExt>::ReadF64Future<'_>
Read number in async way
source§fn read_u8_le(&mut self) -> <A as AsyncReadRentExt>::ReadU8LEFuture<'_>
fn read_u8_le(&mut self) -> <A as AsyncReadRentExt>::ReadU8LEFuture<'_>
Read number in async way
source§fn read_u16_le(&mut self) -> <A as AsyncReadRentExt>::ReadU16LEFuture<'_>
fn read_u16_le(&mut self) -> <A as AsyncReadRentExt>::ReadU16LEFuture<'_>
Read number in async way
source§fn read_u32_le(&mut self) -> <A as AsyncReadRentExt>::ReadU32LEFuture<'_>
fn read_u32_le(&mut self) -> <A as AsyncReadRentExt>::ReadU32LEFuture<'_>
Read number in async way
source§fn read_u64_le(&mut self) -> <A as AsyncReadRentExt>::ReadU64LEFuture<'_>
fn read_u64_le(&mut self) -> <A as AsyncReadRentExt>::ReadU64LEFuture<'_>
Read number in async way
source§fn read_u128_le(&mut self) -> <A as AsyncReadRentExt>::ReadU128LEFuture<'_>
fn read_u128_le(&mut self) -> <A as AsyncReadRentExt>::ReadU128LEFuture<'_>
Read number in async way
source§fn read_i8_le(&mut self) -> <A as AsyncReadRentExt>::ReadI8LEFuture<'_>
fn read_i8_le(&mut self) -> <A as AsyncReadRentExt>::ReadI8LEFuture<'_>
Read number in async way
source§fn read_i16_le(&mut self) -> <A as AsyncReadRentExt>::ReadI16LEFuture<'_>
fn read_i16_le(&mut self) -> <A as AsyncReadRentExt>::ReadI16LEFuture<'_>
Read number in async way
source§fn read_i32_le(&mut self) -> <A as AsyncReadRentExt>::ReadI32LEFuture<'_>
fn read_i32_le(&mut self) -> <A as AsyncReadRentExt>::ReadI32LEFuture<'_>
Read number in async way
source§fn read_i64_le(&mut self) -> <A as AsyncReadRentExt>::ReadI64LEFuture<'_>
fn read_i64_le(&mut self) -> <A as AsyncReadRentExt>::ReadI64LEFuture<'_>
Read number in async way
source§fn read_i128_le(&mut self) -> <A as AsyncReadRentExt>::ReadI128LEFuture<'_>
fn read_i128_le(&mut self) -> <A as AsyncReadRentExt>::ReadI128LEFuture<'_>
Read number in async way
source§fn read_f32_le(&mut self) -> <A as AsyncReadRentExt>::ReadF32LEFuture<'_>
fn read_f32_le(&mut self) -> <A as AsyncReadRentExt>::ReadF32LEFuture<'_>
Read number in async way
source§fn read_f64_le(&mut self) -> <A as AsyncReadRentExt>::ReadF64LEFuture<'_>
fn read_f64_le(&mut self) -> <A as AsyncReadRentExt>::ReadF64LEFuture<'_>
Read number in async way
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more