Skip to main content

deserialize

Function deserialize 

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

Deserialize a snapshot blob into ControllerState.

ยงErrors

Returns Error::Snapshot if the structure or version is invalid, Error::Codec on TLV decode failure, or Error::Cert if an embedded certificate fails to parse.