Struct async_codec_lite::FramedWrite
source · [−]pub struct FramedWrite<T, E> { /* private fields */ }
Implementations
sourceimpl<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
sourceimpl<T, U> Debug for FramedWrite<T, U> where
T: Debug,
U: Debug,
impl<T, U> Debug for FramedWrite<T, U> where
T: Debug,
U: Debug,
sourceimpl<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,
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.
sourcefn 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 more
sourcefn 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 more
sourceimpl<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
__Origin<'__pin, T, E>: Unpin,
Auto Trait Implementations
impl<T, E> RefUnwindSafe for FramedWrite<T, E> where
E: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, E> Send for FramedWrite<T, E> where
E: Send,
T: Send,
impl<T, E> Sync for FramedWrite<T, E> where
E: Sync,
T: Sync,
impl<T, E> UnwindSafe for FramedWrite<T, E> where
E: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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