Function from_buf

Source
pub fn from_buf<'de, T>(buf: impl Buf) -> Result<T>
where T: Deserialize<'de>,
Available on crate feature serde only.
Expand description

Deserialize a value from a given [bytes::Buf].