Struct actix_net::codec::FramedParts2 [−][src]
pub struct FramedParts2<T, D, E> {
pub io: T,
pub decoder: D,
pub encoder: E,
pub read_buf: BytesMut,
pub write_buf: BytesMut,
// some fields omitted
}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: T
The inner transport used to read bytes to and write bytes to
decoder: D
The decoder
encoder: E
The encoder
read_buf: BytesMut
The buffer with read but unprocessed data.
write_buf: BytesMut
A buffer with unprocessed data which are not written yet.
Methods
impl<T, D, E> FramedParts2<T, D, E>[src]
impl<T, D, E> FramedParts2<T, D, E>pub fn new(io: T, decoder: D, encoder: E) -> FramedParts2<T, D, E>[src]
pub fn new(io: T, decoder: D, encoder: E) -> FramedParts2<T, D, E>Create a new, default, FramedParts
Trait Implementations
Auto Trait Implementations
impl<T, D, E> Send for FramedParts2<T, D, E> where
D: Send,
E: Send,
T: Send,
impl<T, D, E> Send for FramedParts2<T, D, E> where
D: Send,
E: Send,
T: Send, impl<T, D, E> Sync for FramedParts2<T, D, E> where
D: Sync,
E: Sync,
T: Sync,
impl<T, D, E> Sync for FramedParts2<T, D, E> where
D: Sync,
E: Sync,
T: Sync,