[−][src]Struct futures_util::io::WriteHalf
The writable half of an object returned from AsyncRead::split
.
Implementations
impl<T: Unpin> WriteHalf<T>
[src]
pub fn reunite(self, other: ReadHalf<T>) -> Result<T, ReuniteError<T>>
[src]
Attempts to put the two "halves" of a split AsyncRead + AsyncWrite
back
together. Succeeds only if the ReadHalf<T>
and WriteHalf<T>
are
a matching pair originating from the same call to AsyncReadExt::split
.
Trait Implementations
impl<W: AsyncWrite> AsyncWrite for WriteHalf<W>
[src]
fn poll_write(
self: Pin<&mut Self>,
cx: &mut Context<'_>,
buf: &[u8]
) -> Poll<Result<usize>>
[src]
self: Pin<&mut Self>,
cx: &mut Context<'_>,
buf: &[u8]
) -> Poll<Result<usize>>
fn poll_write_vectored(
self: Pin<&mut Self>,
cx: &mut Context<'_>,
bufs: &[IoSlice<'_>]
) -> Poll<Result<usize>>
[src]
self: Pin<&mut Self>,
cx: &mut Context<'_>,
bufs: &[IoSlice<'_>]
) -> Poll<Result<usize>>
fn poll_flush(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Result<()>>
[src]
fn poll_close(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Result<()>>
[src]
impl<T: Debug> Debug for WriteHalf<T>
[src]
Auto Trait Implementations
impl<T> !RefUnwindSafe for WriteHalf<T>
impl<T> Send for WriteHalf<T> where
T: Send,
T: Send,
impl<T> Sync for WriteHalf<T> where
T: Send,
T: Send,
impl<T> Unpin for WriteHalf<T>
impl<T> !UnwindSafe for WriteHalf<T>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<W> AsyncWriteExt for W where
W: AsyncWrite + ?Sized,
[src]
W: AsyncWrite + ?Sized,
fn flush(&mut self) -> Flush<'_, Self>ⓘ where
Self: Unpin,
[src]
Self: Unpin,
fn close(&mut self) -> Close<'_, Self>ⓘ where
Self: Unpin,
[src]
Self: Unpin,
fn write<'a>(&'a mut self, buf: &'a [u8]) -> Write<'a, Self>ⓘ where
Self: Unpin,
[src]
Self: Unpin,
fn write_vectored<'a>(
&'a mut self,
bufs: &'a [IoSlice<'a>]
) -> WriteVectored<'a, Self>ⓘNotable traits for WriteVectored<'_, W>
impl<W: AsyncWrite + ?Sized + Unpin, '_> Future for WriteVectored<'_, W> type Output = Result<usize>;
where
Self: Unpin,
[src]
&'a mut self,
bufs: &'a [IoSlice<'a>]
) -> WriteVectored<'a, Self>ⓘ
Notable traits for WriteVectored<'_, W>
impl<W: AsyncWrite + ?Sized + Unpin, '_> Future for WriteVectored<'_, W> type Output = Result<usize>;
Self: Unpin,
fn write_all<'a>(&'a mut self, buf: &'a [u8]) -> WriteAll<'a, Self>ⓘ where
Self: Unpin,
[src]
Self: Unpin,
fn into_sink<Item: AsRef<[u8]>>(self) -> IntoSink<Self, Item> where
Self: Sized,
[src]
Self: Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut Tⓘ
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,