Struct tokio_util::codec::framed_impl::FramedImpl
source · pub(crate) struct FramedImpl<T, U, State> {
pub(crate) inner: T,
pub(crate) state: State,
pub(crate) codec: U,
}
Fields§
§inner: T
§state: State
§codec: U
Trait Implementations§
source§impl<T, I, U, W> Sink<I> for FramedImpl<T, U, W>
impl<T, I, U, W> Sink<I> for FramedImpl<T, U, W>
source§type Error = <U as Encoder<I>>::Error
type Error = <U as Encoder<I>>::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: I) -> Result<(), Self::Error>
fn start_send(self: Pin<&mut Self>, item: I) -> 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, U, R> Stream for FramedImpl<T, U, R>
impl<T, U, R> Stream for FramedImpl<T, U, R>
impl<'__pin, T, U, State> Unpin for FramedImpl<T, U, State>where
PinnedFieldsOf<__Origin<'__pin, T, U, State>>: Unpin,
Auto Trait Implementations§
impl<T, U, State> Freeze for FramedImpl<T, U, State>
impl<T, U, State> RefUnwindSafe for FramedImpl<T, U, State>
impl<T, U, State> Send for FramedImpl<T, U, State>
impl<T, U, State> Sync for FramedImpl<T, U, State>
impl<T, U, State> UnwindSafe for FramedImpl<T, U, State>
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