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>where
T: AsyncWrite,
U: Encoder<I>,
U::Error: From<Error>,
W: BorrowMut<WriteFrame>,
impl<T, I, U, W> Sink<I> for FramedImpl<T, U, W>where T: AsyncWrite, U: Encoder<I>, U::Error: From<Error>, W: BorrowMut<WriteFrame>,
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>where
T: AsyncRead,
U: Decoder,
R: BorrowMut<ReadFrame>,
impl<T, U, R> Stream for FramedImpl<T, U, R>where T: AsyncRead, U: Decoder, R: BorrowMut<ReadFrame>,
impl<'__pin, T, U, State> Unpin for FramedImpl<T, U, State>where __Origin<'__pin, T, U, State>: Unpin,
Auto Trait Implementations§
impl<T, U, State> RefUnwindSafe for FramedImpl<T, U, State>where State: RefUnwindSafe, T: RefUnwindSafe, U: RefUnwindSafe,
impl<T, U, State> Send for FramedImpl<T, U, State>where State: Send, T: Send, U: Send,
impl<T, U, State> Sync for FramedImpl<T, U, State>where State: Sync, T: Sync, U: Sync,
impl<T, U, State> UnwindSafe for FramedImpl<T, U, State>where State: UnwindSafe, T: UnwindSafe, U: 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