pub struct EscapingDataWriter<W> { /* private fields */ }
Expand description
AsyncWrite
instance that takes an unescaped DATA
stream and
escapes it.
Implementations§
Source§impl<W> EscapingDataWriter<W>where
W: AsyncWrite,
impl<W> EscapingDataWriter<W>where
W: AsyncWrite,
Trait Implementations§
Source§impl<W> AsyncWrite for EscapingDataWriter<W>where
W: AsyncWrite,
impl<W> AsyncWrite for EscapingDataWriter<W>where
W: AsyncWrite,
Source§fn poll_write(
self: Pin<&mut Self>,
cx: &mut Context<'_>,
buf: &[u8],
) -> Poll<Result<usize>>
fn poll_write( self: Pin<&mut Self>, cx: &mut Context<'_>, buf: &[u8], ) -> Poll<Result<usize>>
Attempt to write bytes from
buf
into the object. Read moreSource§fn poll_flush(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Result<()>>
fn poll_flush(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Result<()>>
Attempt to flush the object, ensuring that any buffered data reach
their destination. Read more
impl<'pin, W> Unpin for EscapingDataWriter<W>where
PinnedFieldsOf<__EscapingDataWriter<'pin, W>>: Unpin,
Auto Trait Implementations§
impl<W> Freeze for EscapingDataWriter<W>where
W: Freeze,
impl<W> RefUnwindSafe for EscapingDataWriter<W>where
W: RefUnwindSafe,
impl<W> Send for EscapingDataWriter<W>where
W: Send,
impl<W> Sync for EscapingDataWriter<W>where
W: Sync,
impl<W> UnwindSafe for EscapingDataWriter<W>where
W: UnwindSafe,
Blanket Implementations§
Source§impl<W> AsyncWriteExt for Wwhere
W: AsyncWrite + ?Sized,
impl<W> AsyncWriteExt for Wwhere
W: AsyncWrite + ?Sized,
Source§fn flush(&mut self) -> Flush<'_, Self>where
Self: Unpin,
fn flush(&mut self) -> Flush<'_, Self>where
Self: Unpin,
Creates a future which will entirely flush this
AsyncWrite
. Read moreSource§fn close(&mut self) -> Close<'_, Self>where
Self: Unpin,
fn close(&mut self) -> Close<'_, Self>where
Self: Unpin,
Creates a future which will entirely close this
AsyncWrite
.Source§fn write<'a>(&'a mut self, buf: &'a [u8]) -> Write<'a, Self>where
Self: Unpin,
fn write<'a>(&'a mut self, buf: &'a [u8]) -> Write<'a, Self>where
Self: Unpin,
Creates a future which will write bytes from
buf
into the object. Read moreSource§fn write_vectored<'a>(
&'a mut self,
bufs: &'a [IoSlice<'a>],
) -> WriteVectored<'a, Self>where
Self: Unpin,
fn write_vectored<'a>(
&'a mut self,
bufs: &'a [IoSlice<'a>],
) -> WriteVectored<'a, Self>where
Self: Unpin,
Creates a future which will write bytes from
bufs
into the object using vectored
IO operations. Read moreSource§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more