[−][src]Struct futures::io::WriteHalf
The writable half of an object returned from AsyncRead::split
.
Trait Implementations
impl<T> AsyncWrite for WriteHalf<T> where
T: AsyncWrite,
[src]
impl<T> AsyncWrite for WriteHalf<T> where
T: AsyncWrite,
fn poll_write(
&mut self,
cx: &mut Context,
buf: &[u8]
) -> Result<Async<usize>, Error>
[src]
fn poll_write(
&mut self,
cx: &mut Context,
buf: &[u8]
) -> Result<Async<usize>, Error>
Attempt to write bytes from buf
into the object. Read more
fn poll_vectored_write(
&mut self,
cx: &mut Context,
vec: &[&IoVec]
) -> Result<Async<usize>, Error>
[src]
fn poll_vectored_write(
&mut self,
cx: &mut Context,
vec: &[&IoVec]
) -> Result<Async<usize>, Error>
Attempt to write bytes from vec
into the object using vectored IO operations. Read more
fn poll_flush(&mut self, cx: &mut Context) -> Result<Async<()>, Error>
[src]
fn poll_flush(&mut self, cx: &mut Context) -> Result<Async<()>, Error>
Attempt to flush the object, ensuring that any buffered data reach their destination. Read more
fn poll_close(&mut self, cx: &mut Context) -> Result<Async<()>, Error>
[src]
fn poll_close(&mut self, cx: &mut Context) -> Result<Async<()>, Error>
Attempt to close the object. Read more
impl<T> Debug for WriteHalf<T> where
T: Debug,
[src]
impl<T> Debug for WriteHalf<T> where
T: Debug,
Auto Trait Implementations
Blanket Implementations
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> From for T
[src]
impl<T> From for T
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
try_from
)Performs the conversion.
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
fn borrow_mut(&mut self) -> &mut T
Mutably 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> AsyncWriteExt for T where
T: AsyncWrite + ?Sized,
[src]
impl<T> AsyncWriteExt for T where
T: AsyncWrite + ?Sized,
fn flush(self) -> Flush<Self>
[src]
fn flush(self) -> Flush<Self>
Creates a future which will entirely flush this AsyncWrite
and then return self
. Read more
fn close(self) -> Close<Self>
[src]
fn close(self) -> Close<Self>
Creates a future which will entirely close this AsyncWrite
and then return self
. Read more
fn write_all<T>(self, buf: T) -> WriteAll<Self, T> where
T: AsRef<[u8]>,
[src]
fn write_all<T>(self, buf: T) -> WriteAll<Self, T> where
T: AsRef<[u8]>,
Write a Buf
into this value, returning how many bytes were written. Creates a future that will write the entire contents of the buffer buf
into this AsyncWrite
. Read more