decode_from

Function decode_from 

Source
pub fn decode_from(bytes: &[u8]) -> Result<Metadata, Error>
Expand description

Attempt to decode some bytes into Metadata, returning an error if decoding fails.

This is a shortcut for importing codec::Decode and using the implementation of that on Metadata.