Trait binate::frame::Decode[][src]

pub trait Decode {
    type Value;
    fn decode<B: Buf>(
        bytes: &mut B,
        stream_id: u32,
        flags: Flags
    ) -> Result<Self::Value, DecodeError>; }
This is supported on crate feature frame only.
Expand description

A trait for decoding bytes into a frame.

Associated Types

The value decoded into.

Required methods

Decodes the given bytes into a frame.

Implementors