Trait Decode

Source
pub trait Decode: Sized {
    // Required method
    fn decode<B>(buf: &mut B) -> Result<Self, UnexpectedEnd>
       where B: Buf;
}
Available on crate feature h3 only.

Required Methods§

Source

fn decode<B>(buf: &mut B) -> Result<Self, UnexpectedEnd>
where B: Buf,

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 Decode for u8

Source§

fn decode<B>(buf: &mut B) -> Result<u8, UnexpectedEnd>
where B: Buf,

Implementors§