pub struct FramedWrite<T, E> { /* private fields */ }
Implementations§
Source§impl<T, E> FramedWrite<T, E>where
T: AsyncWrite,
impl<T, E> FramedWrite<T, E>where
T: AsyncWrite,
pub fn new(inner: T, encoder: E) -> FramedWrite<T, E>
Trait Implementations§
Source§impl<T, U> Debug for FramedWrite<T, U>
impl<T, U> Debug for FramedWrite<T, U>
Source§impl<T, E> Sink<<E as Encoder>::Item> for FramedWrite<T, E>where
T: AsyncWrite,
E: Encoder,
impl<T, E> Sink<<E as Encoder>::Item> for FramedWrite<T, E>where
T: AsyncWrite,
E: Encoder,
Source§type Error = Error<<E as Encoder>::Error>
type Error = Error<<E as Encoder>::Error>
The type of value produced by the sink when an error occurs.
Source§fn poll_ready(
self: Pin<&mut Self>,
cx: &mut Context<'_>,
) -> Poll<Result<(), Self::Error>>
fn poll_ready( self: Pin<&mut Self>, cx: &mut Context<'_>, ) -> Poll<Result<(), Self::Error>>
Attempts to prepare the
Sink
to receive a value. Read moreSource§fn start_send(self: Pin<&mut Self>, item: E::Item) -> Result<(), Self::Error>
fn start_send(self: Pin<&mut Self>, item: E::Item) -> Result<(), Self::Error>
Begin the process of sending a value to the sink.
Each call to this function must be preceded by a successful call to
poll_ready
which returned Poll::Ready(Ok(()))
. Read moreSource§impl<T, D> Stream for FramedWrite<T, D>where
T: Stream,
impl<T, D> Stream for FramedWrite<T, D>where
T: Stream,
impl<'__pin, T, E> Unpin for FramedWrite<T, E>where
PinnedFieldsOf<__Origin<'__pin, T, E>>: Unpin,
Auto Trait Implementations§
impl<T, E> Freeze for FramedWrite<T, E>
impl<T, E> RefUnwindSafe for FramedWrite<T, E>where
T: RefUnwindSafe,
E: RefUnwindSafe,
impl<T, E> Send for FramedWrite<T, E>
impl<T, E> Sync for FramedWrite<T, E>
impl<T, E> UnwindSafe for FramedWrite<T, E>where
T: UnwindSafe,
E: UnwindSafe,
Blanket Implementations§
Source§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