Decode

Trait Decode 

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

Required Methods§

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§

§

impl Decode for u8

§

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

Implementors§