Trait MlsDecode

Source
pub trait MlsDecode: Sized {
    // Required method
    fn mls_decode(reader: &mut &[u8]) -> Result<Self, Error>;
}
Expand description

Trait to support deserialzing to a type using MLS encoding.

Required Methods§

Source

fn mls_decode(reader: &mut &[u8]) -> Result<Self, Error>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl MlsDecode for bool

Source§

fn mls_decode(reader: &mut &[u8]) -> Result<Self, Error>

Source§

impl MlsDecode for u8

Source§

fn mls_decode(reader: &mut &[u8]) -> Result<Self, Error>

Source§

impl MlsDecode for u16

Source§

fn mls_decode(reader: &mut &[u8]) -> Result<Self, Error>

Source§

impl MlsDecode for u32

Source§

fn mls_decode(reader: &mut &[u8]) -> Result<Self, Error>

Source§

impl MlsDecode for u64

Source§

fn mls_decode(reader: &mut &[u8]) -> Result<Self, Error>

Source§

impl MlsDecode for u128

Source§

fn mls_decode(reader: &mut &[u8]) -> Result<Self, Error>

Source§

impl MlsDecode for String

Source§

fn mls_decode(reader: &mut &[u8]) -> Result<Self, Error>

Source§

impl<K, V> MlsDecode for BTreeMap<K, V>
where K: MlsDecode + Eq + Ord, V: MlsDecode,

Source§

fn mls_decode(reader: &mut &[u8]) -> Result<Self, Error>

Source§

impl<K, V> MlsDecode for HashMap<K, V>
where K: MlsDecode + Hash + Eq, V: MlsDecode,

Source§

fn mls_decode(reader: &mut &[u8]) -> Result<Self, Error>

Source§

impl<T> MlsDecode for Cow<'_, T>
where T: ToOwned, <T as ToOwned>::Owned: MlsDecode,

Source§

fn mls_decode(reader: &mut &[u8]) -> Result<Self, Error>

Source§

impl<T, U> MlsDecode for (T, U)
where T: MlsDecode, U: MlsDecode,

Source§

fn mls_decode(reader: &mut &[u8]) -> Result<Self, Error>

Source§

impl<T: MlsDecode> MlsDecode for Option<T>

Source§

fn mls_decode(reader: &mut &[u8]) -> Result<Self, Error>

Source§

impl<T: MlsDecode> MlsDecode for Box<T>

Source§

fn mls_decode(reader: &mut &[u8]) -> Result<Self, Error>

Source§

impl<const N: usize> MlsDecode for [u8; N]

Source§

fn mls_decode(reader: &mut &[u8]) -> Result<Self, Error>

Implementors§

Source§

impl MlsDecode for VarInt

Source§

impl<T> MlsDecode for Vec<T>
where T: MlsDecode,