Function postcard::take_from_bytes
source ยท pub fn take_from_bytes<'a, T>(s: &'a [u8]) -> Result<(T, &'a [u8])>where
T: Deserialize<'a>,
Expand description
Deserialize a message of type T
from a byte slice. The unused portion (if any)
of the byte slice is returned for further usage