[−][src]Struct tokio::net::tcp::split::TcpStreamWriteHalfMut
Write half of a TcpStream
.
Note that in the AsyncWrite
implemenation of TcpStreamWriteHalf
,
poll_shutdown
actually shuts down the TCP stream in the write direction.
Trait Implementations
impl<'_> AsyncWrite for TcpStreamWriteHalfMut<'_>
[src]
fn poll_write(
self: Pin<&mut TcpStreamWriteHalfMut<'_>>,
cx: &mut Context,
buf: &[u8]
) -> Poll<Result<usize, Error>>
[src]
self: Pin<&mut TcpStreamWriteHalfMut<'_>>,
cx: &mut Context,
buf: &[u8]
) -> Poll<Result<usize, Error>>
fn poll_flush(
self: Pin<&mut TcpStreamWriteHalfMut<'_>>,
&mut Context
) -> Poll<Result<(), Error>>
[src]
self: Pin<&mut TcpStreamWriteHalfMut<'_>>,
&mut Context
) -> Poll<Result<(), Error>>
fn poll_shutdown(
self: Pin<&mut TcpStreamWriteHalfMut<'_>>,
&mut Context
) -> Poll<Result<(), Error>>
[src]
self: Pin<&mut TcpStreamWriteHalfMut<'_>>,
&mut Context
) -> Poll<Result<(), Error>>
fn poll_write_buf<B>(
self: Pin<&mut TcpStreamWriteHalfMut<'_>>,
cx: &mut Context,
buf: &mut B
) -> Poll<Result<usize, Error>> where
B: Buf,
[src]
self: Pin<&mut TcpStreamWriteHalfMut<'_>>,
cx: &mut Context,
buf: &mut B
) -> Poll<Result<usize, Error>> where
B: Buf,
impl<'_> AsRef<TcpStream> for TcpStreamWriteHalfMut<'_>
[src]
impl<'a> Debug for TcpStreamWriteHalfMut<'a>
[src]
Auto Trait Implementations
impl<'a> Send for TcpStreamWriteHalfMut<'a>
impl<'a> Unpin for TcpStreamWriteHalfMut<'a>
impl<'a> Sync for TcpStreamWriteHalfMut<'a>
impl<'a> !UnwindSafe for TcpStreamWriteHalfMut<'a>
impl<'a> !RefUnwindSafe for TcpStreamWriteHalfMut<'a>
Blanket Implementations
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
ⓘImportant traits for &'_ mut Ffn borrow_mut(&mut self) -> &mut T
[src]
ⓘImportant traits for &'_ mut F
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 write(&'a mut self, src: &'a [u8]) -> Write<'a, Self> where
Self: Unpin,
[src]
Self: Unpin,
Write a buffer into this writter, returning how many bytes were written.
fn write_all(&'a mut self, src: &'a [u8]) -> WriteAll<'a, Self> where
Self: Unpin,
[src]
Self: Unpin,
Attempt to write an entire buffer into this writter.
fn flush(&mut self) -> Flush<Self> where
Self: Unpin,
[src]
Self: Unpin,
Flush the contents of this writer.
fn shutdown(&mut self) -> Shutdown<Self> where
Self: Unpin,
[src]
Self: Unpin,
Shutdown this writer.