Struct tokio::io::WriteHalf
[−]
[src]
pub struct WriteHalf<T> { /* fields omitted */ }
The writable half of an object returned from AsyncRead::split
.
Trait Implementations
impl<T> Debug for WriteHalf<T> where
T: Debug,
[src]
T: Debug,
fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>
[src]
Formats the value using the given formatter. Read more
impl<T> AsyncWrite for WriteHalf<T> where
T: AsyncWrite,
[src]
T: AsyncWrite,
fn shutdown(&mut self) -> Result<Async<()>, Error>
[src]
Initiates or attempts to shut down this writer, returning success when the I/O connection has completely shut down. Read more
fn write_buf<B>(&mut self, buf: &mut B) -> Result<Async<usize>, Error> where
B: Buf,
WriteHalf<T>: Sized,
[src]
B: Buf,
WriteHalf<T>: Sized,
Write a Buf
into this value, returning how many bytes were written. Read more
fn poll_write(&mut self, buf: &[u8]) -> Result<Async<usize>, Error>
[src]
Attempt to write bytes from buf
into the object. Read more
fn poll_flush(&mut self) -> Result<Async<()>, Error>
[src]
Attempt to flush the object, ensuring that any buffered data reach their destination. Read more
impl<T> Write for WriteHalf<T> where
T: AsyncWrite,
[src]
T: AsyncWrite,
fn write(&mut self, buf: &[u8]) -> Result<usize, Error>
[src]
Write a buffer into this object, returning how many bytes were written. Read more
fn flush(&mut self) -> Result<(), Error>
[src]
Flush this output stream, ensuring that all intermediately buffered contents reach their destination. Read more
fn write_all(&mut self, buf: &[u8]) -> Result<(), Error>
1.0.0[src]
Attempts to write an entire buffer into this write. Read more
fn write_fmt(&mut self, fmt: Arguments) -> Result<(), Error>
1.0.0[src]
Writes a formatted string into this writer, returning any error encountered. Read more
ⓘImportant traits for &'a mut Rfn by_ref(&mut self) -> &mut Self
1.0.0[src]
Creates a "by reference" adaptor for this instance of Write
. Read more