Trait hpke::Deserializable

source ·
pub trait Deserializable: Serializable + Sized {
    // Required method
    fn from_bytes(encoded: &[u8]) -> Result<Self, HpkeError>;
}
Expand description

Implemented by types that can be deserialized from byte representation

Required Methods§

source

fn from_bytes(encoded: &[u8]) -> Result<Self, HpkeError>

Implementors§