Struct FramedParts
struct FramedParts<T, U> { ... }
FramedParts contains an export of the data of a Framed transport.
It can be used to construct a new Framed with a different codec.
It contains all current buffers and the inner transport.
Fields
io: TThe inner transport used to read bytes to and write bytes to
codec: UThe codec
read_buf: BytesMutThe buffer with read but unprocessed data.
write_buf: BytesMutA buffer with unprocessed data which are not written yet.
Implementations
impl<T, U> FramedParts<T, U>
fn new<I>(io: T, codec: U) -> FramedParts<T, U> where U: Encoder<I>Create a new, default,
FramedParts
impl<T> Any for FramedParts<T, U>
fn type_id(self: &Self) -> TypeId
impl<T> Borrow for FramedParts<T, U>
fn borrow(self: &Self) -> &T
impl<T> BorrowMut for FramedParts<T, U>
fn borrow_mut(self: &mut Self) -> &mut T
impl<T> From for FramedParts<T, U>
fn from(t: T) -> TReturns the argument unchanged.
impl<T, U> Freeze for FramedParts<T, U>
impl<T, U> Into for FramedParts<T, U>
fn into(self: Self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> RefUnwindSafe for FramedParts<T, U>
impl<T, U> Send for FramedParts<T, U>
impl<T, U> Sync for FramedParts<T, U>
impl<T, U> TryFrom for FramedParts<T, U>
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto for FramedParts<T, U>
fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>
impl<T, U> Unpin for FramedParts<T, U>
impl<T, U> UnsafeUnpin for FramedParts<T, U>
impl<T, U> UnwindSafe for FramedParts<T, U>
impl<T: $crate::fmt::Debug, U: $crate::fmt::Debug> Debug for FramedParts<T, U>
fn fmt(self: &Self, f: &mut Formatter<'_>) -> Result