Skip to content

Trait encoding::Decode

zaun_community_protocol::encoding::Decode · Trait

pub trait Decode { … }

A type with a canonical decoding.

fn decode(r: &mut Reader<'_>) -> Result<Self, DecodeError>;

Reads one value.

DecodeError for truncated, oversized or invalid input.

Full rustdoc page