Decode

Trait Decode 

Source
pub trait Decode: Sized {
    // Required method
    fn decode<B>(buf: &mut B) -> Result<Self, UnexpectedEnd>
       where B: Buf;
}
Available on crate features h3 and i-implement-a-third-party-backend-and-opt-into-breaking-changes 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§