[−][src]Struct futures_util::io::WriteHalf
The writable half of an object returned from AsyncRead::split
.
Trait Implementations
impl<T: Debug> Debug for WriteHalf<T>
[src]
impl<T: Debug> Debug for WriteHalf<T>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<W: AsyncWrite> AsyncWrite for WriteHalf<W>
[src]
impl<W: AsyncWrite> AsyncWrite for WriteHalf<W>
fn poll_write(&mut self, lw: &LocalWaker, buf: &[u8]) -> Poll<Result<usize>>
[src]
fn poll_write(&mut self, lw: &LocalWaker, buf: &[u8]) -> Poll<Result<usize>>
Attempt to write bytes from buf
into the object. Read more
fn poll_vectored_write(
&mut self,
lw: &LocalWaker,
vec: &[&IoVec]
) -> Poll<Result<usize>>
[src]
fn poll_vectored_write(
&mut self,
lw: &LocalWaker,
vec: &[&IoVec]
) -> Poll<Result<usize>>
Attempt to write bytes from vec
into the object using vectored IO operations. Read more
fn poll_flush(&mut self, lw: &LocalWaker) -> Poll<Result<()>>
[src]
fn poll_flush(&mut self, lw: &LocalWaker) -> Poll<Result<()>>
Attempt to flush the object, ensuring that any buffered data reach their destination. Read more
fn poll_close(&mut self, lw: &LocalWaker) -> Poll<Result<()>>
[src]
fn poll_close(&mut self, lw: &LocalWaker) -> Poll<Result<()>>
Attempt to close the object. Read more
Auto Trait Implementations
Blanket Implementations
impl<W> AsyncWriteExt for W where
W: AsyncWrite + ?Sized,
[src]
impl<W> AsyncWriteExt for W where
W: AsyncWrite + ?Sized,
fn flush(&mut self) -> Flush<Self>
[src]
fn flush(&mut self) -> Flush<Self>
Creates a future which will entirely flush this AsyncWrite
. Read more
fn close(&mut self) -> Close<Self>
[src]
fn close(&mut self) -> Close<Self>
Creates a future which will entirely close this AsyncWrite
.
fn write_all<'a>(&'a mut self, buf: &'a [u8]) -> WriteAll<'a, Self>
[src]
fn write_all<'a>(&'a mut self, buf: &'a [u8]) -> WriteAll<'a, Self>
Write data into this object. Read more
ⓘImportant traits for Compat<W>fn compat_write(self) -> Compat<Self> where
Self: Sized,
[src]
fn compat_write(self) -> Compat<Self> where
Self: Sized,
Wraps an AsyncWrite
in a compatibility wrapper that allows it to be used as a futures 0.1 / tokio-io 0.1 AsyncWrite
. Requires the io-compat
feature to enable. Read more
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
try_from
)Performs the conversion.
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
ⓘImportant traits for &'_ mut Ifn borrow(&self) -> &T
[src]
fn borrow(&self) -> &T
Immutably borrows from an owned value. Read more
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId
[src]
fn get_type_id(&self) -> TypeId
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static
Gets the TypeId
of self
. Read more
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
ⓘImportant traits for &'_ mut Ifn borrow_mut(&mut self) -> &mut T
[src]
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,