Struct grafix_toolbox::uses::asyn::io::WriteHalf
pub struct WriteHalf<T>(_);Expand description
The write half returned by split().
Trait Implementations
impl<T> AsyncWrite for WriteHalf<T>where
T: AsyncWrite + Unpin,
impl<T> AsyncWrite for WriteHalf<T>where
T: AsyncWrite + Unpin,
fn poll_write(
self: Pin<&mut WriteHalf<T>>,
cx: &mut Context<'_>,
buf: &[u8]
) -> Poll<Result<usize, Error>>
fn poll_write(
self: Pin<&mut WriteHalf<T>>,
cx: &mut Context<'_>,
buf: &[u8]
) -> Poll<Result<usize, Error>>
Attempt to write bytes from
buf into the object. Read morefn poll_flush(
self: Pin<&mut WriteHalf<T>>,
cx: &mut Context<'_>
) -> Poll<Result<(), Error>>
fn poll_flush(
self: Pin<&mut WriteHalf<T>>,
cx: &mut Context<'_>
) -> Poll<Result<(), Error>>
Attempt to flush the object, ensuring that any buffered data reach
their destination. Read more
Auto Trait Implementations
impl<T> RefUnwindSafe for WriteHalf<T>
impl<T> Send for WriteHalf<T>where
T: Send,
impl<T> Sync for WriteHalf<T>where
T: Send,
impl<T> Unpin for WriteHalf<T>
impl<T> UnwindSafe for WriteHalf<T>
Blanket Implementations
impl<W> AsyncWriteExt for Wwhere
W: AsyncWrite + ?Sized,
impl<W> AsyncWriteExt for Wwhere
W: AsyncWrite + ?Sized,
fn write(&'a mut self, buf: &'a [u8]) -> WriteFuture<'a, Self>ⓘNotable traits for WriteFuture<'_, W>impl<W> Future for WriteFuture<'_, W>where
W: AsyncWrite + Unpin + ?Sized, type Output = Result<usize, Error>;where
Self: Unpin,
fn write(&'a mut self, buf: &'a [u8]) -> WriteFuture<'a, Self>ⓘNotable traits for WriteFuture<'_, W>impl<W> Future for WriteFuture<'_, W>where
W: AsyncWrite + Unpin + ?Sized, type Output = Result<usize, Error>;where
Self: Unpin,
W: AsyncWrite + Unpin + ?Sized, type Output = Result<usize, Error>;
Writes some bytes into the byte stream. Read more
fn write_vectored(
&'a mut self,
bufs: &'a [IoSlice<'a>]
) -> WriteVectoredFuture<'a, Self>ⓘNotable traits for WriteVectoredFuture<'_, W>impl<W> Future for WriteVectoredFuture<'_, W>where
W: AsyncWrite + Unpin + ?Sized, type Output = Result<usize, Error>;where
Self: Unpin,
fn write_vectored(
&'a mut self,
bufs: &'a [IoSlice<'a>]
) -> WriteVectoredFuture<'a, Self>ⓘNotable traits for WriteVectoredFuture<'_, W>impl<W> Future for WriteVectoredFuture<'_, W>where
W: AsyncWrite + Unpin + ?Sized, type Output = Result<usize, Error>;where
Self: Unpin,
W: AsyncWrite + Unpin + ?Sized, type Output = Result<usize, Error>;
fn write_all(&'a mut self, buf: &'a [u8]) -> WriteAllFuture<'a, Self>ⓘNotable traits for WriteAllFuture<'_, W>impl<W> Future for WriteAllFuture<'_, W>where
W: AsyncWrite + Unpin + ?Sized, type Output = Result<(), Error>;where
Self: Unpin,
fn write_all(&'a mut self, buf: &'a [u8]) -> WriteAllFuture<'a, Self>ⓘNotable traits for WriteAllFuture<'_, W>impl<W> Future for WriteAllFuture<'_, W>where
W: AsyncWrite + Unpin + ?Sized, type Output = Result<(), Error>;where
Self: Unpin,
W: AsyncWrite + Unpin + ?Sized, type Output = Result<(), Error>;
Writes an entire buffer into the byte stream. Read more
fn flush(&mut self) -> FlushFuture<'_, Self>ⓘNotable traits for FlushFuture<'_, W>impl<W> Future for FlushFuture<'_, W>where
W: AsyncWrite + Unpin + ?Sized, type Output = Result<(), Error>;where
Self: Unpin,
fn flush(&mut self) -> FlushFuture<'_, Self>ⓘNotable traits for FlushFuture<'_, W>impl<W> Future for FlushFuture<'_, W>where
W: AsyncWrite + Unpin + ?Sized, type Output = Result<(), Error>;where
Self: Unpin,
W: AsyncWrite + Unpin + ?Sized, type Output = Result<(), Error>;
Flushes the stream to ensure that all buffered contents reach their destination. Read more
fn close(&mut self) -> CloseFuture<'_, Self>ⓘNotable traits for CloseFuture<'_, W>impl<W> Future for CloseFuture<'_, W>where
W: AsyncWrite + Unpin + ?Sized, type Output = Result<(), Error>;where
Self: Unpin,
fn close(&mut self) -> CloseFuture<'_, Self>ⓘNotable traits for CloseFuture<'_, W>impl<W> Future for CloseFuture<'_, W>where
W: AsyncWrite + Unpin + ?Sized, type Output = Result<(), Error>;where
Self: Unpin,
W: AsyncWrite + Unpin + ?Sized, type Output = Result<(), Error>;
Closes the writer. Read more
fn boxed_writer<'a>(self) -> Pin<Box<dyn AsyncWrite + Send + 'a, Global>>where
Self: 'a + Sized + Send,
fn boxed_writer<'a>(self) -> Pin<Box<dyn AsyncWrite + Send + 'a, Global>>where
Self: 'a + Sized + Send,
Boxes the writer and changes its type to
dyn AsyncWrite + Send + 'a. Read moresourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read morefn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.