Struct monoio_http::util::split::OwnedWriteHalf
source · pub struct OwnedWriteHalf<T>(_);
Expand description
OwnedWriteHalf.
Trait Implementations§
source§impl<IO> AsyncWriteRent for OwnedWriteHalf<IO>where
IO: AsyncWriteRent,
impl<IO> AsyncWriteRent for OwnedWriteHalf<IO>where IO: AsyncWriteRent,
§type WriteFuture<'a, B>
where
B: IoBuf + 'a,
Self: 'a = impl Future<Output = (Result<usize, Error>, B)> + 'a
type WriteFuture<'a, B> where B: IoBuf + 'a, Self: 'a = impl Future<Output = (Result<usize, Error>, B)> + 'a
The future of write Result<size, buffer>
§type WritevFuture<'a, B>
where
B: IoVecBuf + 'a,
Self: 'a = impl Future<Output = (Result<usize, Error>, B)> + 'a
type WritevFuture<'a, B> where B: IoVecBuf + 'a, Self: 'a = impl Future<Output = (Result<usize, Error>, B)> + 'a
The future of writev Result<size, buffer>
§type FlushFuture<'a>
where
Self: 'a = impl Future<Output = Result<(), Error>> + 'a
type FlushFuture<'a> where Self: 'a = impl Future<Output = Result<(), Error>> + 'a
The future of flush
§type ShutdownFuture<'a>
where
Self: 'a = impl Future<Output = Result<(), Error>> + 'a
type ShutdownFuture<'a> where Self: 'a = impl Future<Output = Result<(), Error>> + 'a
The future of shutdown
source§fn write<T: IoBuf>(&mut self, buf: T) -> Self::WriteFuture<'_, T>
fn write<T: IoBuf>(&mut self, buf: T) -> Self::WriteFuture<'_, T>
Same as write(2)
source§fn writev<T: IoVecBuf>(&mut self, buf_vec: T) -> Self::WritevFuture<'_, T>
fn writev<T: IoVecBuf>(&mut self, buf_vec: T) -> Self::WritevFuture<'_, T>
Same as writev(2)
source§fn flush(&mut self) -> Self::FlushFuture<'_>
fn flush(&mut self) -> Self::FlushFuture<'_>
Flush buffered data if needed
source§fn shutdown(&mut self) -> Self::ShutdownFuture<'_>
fn shutdown(&mut self) -> Self::ShutdownFuture<'_>
Same as shutdown
Auto Trait Implementations§
impl<T> !RefUnwindSafe for OwnedWriteHalf<T>
impl<T> !Send for OwnedWriteHalf<T>
impl<T> !Sync for OwnedWriteHalf<T>
impl<T> Unpin for OwnedWriteHalf<T>
impl<T> !UnwindSafe for OwnedWriteHalf<T>
Blanket Implementations§
source§impl<A> AsyncWriteRentExt for Awhere
A: AsyncWriteRent + ?Sized,
impl<A> AsyncWriteRentExt for Awhere A: AsyncWriteRent + ?Sized,
§type WriteExactFuture = impl Future<Output = (Result<usize, Error>, T)> + 'a
type WriteExactFuture = impl Future<Output = (Result<usize, Error>, T)> + 'a
The future of Result<size, buffer>
source§fn write_all<T>(
&mut self,
buf: T
) -> <A as AsyncWriteRentExt>::WriteExactFuture<'_, T>where
T: 'static + IoBuf,
fn write_all<T>( &mut self, buf: T ) -> <A as AsyncWriteRentExt>::WriteExactFuture<'_, T>where T: 'static + IoBuf,
Write all
§type WriteVectoredExactFuture = impl Future<Output = (Result<usize, Error>, T)> + 'a
type WriteVectoredExactFuture = impl Future<Output = (Result<usize, Error>, T)> + 'a
The future of Result<size, buffer>
source§fn write_vectored_all<T>(
&mut self,
buf: T
) -> <A as AsyncWriteRentExt>::WriteVectoredExactFuture<'_, T>where
T: 'static + IoVecBuf,
fn write_vectored_all<T>( &mut self, buf: T ) -> <A as AsyncWriteRentExt>::WriteVectoredExactFuture<'_, T>where T: 'static + IoVecBuf,
Write all
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