Struct sirpent::net::MsgCodec
[−]
[src]
pub struct MsgCodec;
Trait Implementations
impl Clone for MsgCodec
[src]
fn clone(&self) -> MsgCodec
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Copy for MsgCodec
[src]
impl Debug for MsgCodec
[src]
impl Decoder for MsgCodec
[src]
type Item = Msg
The type of decoded frames.
type Error = Error
The type of unrecoverable frame decoding errors. Read more
fn decode(&mut self, buf: &mut BytesMut) -> Result<Option<Msg>>
Attempts to decode a frame from the provided buffer of bytes. Read more
fn decode_eof(&mut self,
buf: &mut BytesMut)
-> Result<Option<Self::Item>, Self::Error>
buf: &mut BytesMut)
-> Result<Option<Self::Item>, Self::Error>
A default method available to be called when there are no more bytes available to be read from the underlying I/O. Read more