Encode

Trait Encode 

pub trait Encode {
    // Required method
    fn encode<B>(&self, buf: &mut B)
       where B: BufMut;
}
Available on crate features quic and h3 and i-implement-a-third-party-backend-and-opt-into-breaking-changes only.

Required Methods§

fn encode<B>(&self, buf: &mut B)
where B: BufMut,

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

§

fn encode<B>(&self, buf: &mut B)
where B: BufMut,

Implementors§

§

impl Encode for BidiStreamHeader

§

impl Encode for UniStreamHeader

§

impl Encode for StreamId

§

impl Encode for SessionId

§

impl Encode for StreamType

§

impl<B> Encode for Frame<B>
where B: Buf,