Struct tokio_serde_msgpack::MsgPackDecoder
[−]
[src]
pub struct MsgPackDecoder<'de, T: 'de> where
T: Deserialize<'de>, { /* fields omitted */ }
Methods
impl<'de, T> MsgPackDecoder<'de, T> where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
Trait Implementations
impl<'de, T> Decoder for MsgPackDecoder<'de, T> where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
type Item = T
The type of decoded frames.
type Error = DecodeError
The type of unrecoverable frame decoding errors. Read more
fn decode(&mut self, buf: &mut BytesMut) -> Result<Option<T>, Self::Error>
[src]
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>
[src]
&mut self,
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
Auto Trait Implementations
impl<'de, T> Send for MsgPackDecoder<'de, T> where
T: Sync,
T: Sync,
impl<'de, T> Sync for MsgPackDecoder<'de, T> where
T: Sync,
T: Sync,