Struct monoio_http::util::split::OwnedWriteHalf
source · [−]pub struct OwnedWriteHalf<T>(_);
Expand description
OwnedWriteHalf.
Trait Implementations
sourceimpl<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)>
type WriteFuture<'a, B>
where
B: IoBuf + 'a,
Self: 'a = impl Future<Output = (Result<usize, Error>, B)>
The future of write Result<size, buffer>
type WritevFuture<'a, B>
where
B: IoVecBuf + 'a,
Self: 'a = impl Future<Output = (Result<usize, Error>, B)>
type WritevFuture<'a, B>
where
B: IoVecBuf + 'a,
Self: 'a = impl Future<Output = (Result<usize, Error>, B)>
The future of writev Result<size, buffer>
type FlushFuture<'a>
where
Self: 'a = impl Future<Output = Result<(), Error>>
type FlushFuture<'a>
where
Self: 'a = impl Future<Output = Result<(), Error>>
The future of flush
type ShutdownFuture<'a>
where
Self: 'a = impl Future<Output = Result<(), Error>>
type ShutdownFuture<'a>
where
Self: 'a = impl Future<Output = Result<(), Error>>
The future of shutdown
sourcefn 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)
sourcefn 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)
sourcefn flush(&mut self) -> Self::FlushFuture<'_>
fn flush(&mut self) -> Self::FlushFuture<'_>
Flush buffered data if needed
sourcefn 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
sourceimpl<A> AsyncWriteRentExt for Awhere
A: AsyncWriteRent + ?Sized,
impl<A> AsyncWriteRentExt for Awhere
A: AsyncWriteRent + ?Sized,
type WriteExactFuture = impl Future<Output = (Result<usize, Error>, T)>
type WriteExactFuture = impl Future<Output = (Result<usize, Error>, T)>
The future of Result<size, buffer>
sourcefn 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)>
type WriteVectoredExactFuture = impl Future<Output = (Result<usize, Error>, T)>
The future of Result<size, buffer>
sourcefn 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
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