from_buffer

Function from_buffer 

Source
pub fn from_buffer<'de, T>(
    decoder: &mut Decoder,
    buffer: &[u8],
) -> Result<(T, u64)>
where T: Deserialize<'de>,
Expand description

Decode single message from buffer. Returns the decoded message and number of bytes consumed.