pub trait MessageDecode<'buf>: MessageExt {
    // Required method
    fn decode_frame(frame: &Frame<&'buf [u8]>) -> Result<Self, FrameError>
       where Self: Sized;

    // Provided method
    fn decode(frame: &Frame<&'buf [u8]>) -> Result<Self, FrameError>
       where Self: Sized { ... }
}

Required Methods§

source

fn decode_frame(frame: &Frame<&'buf [u8]>) -> Result<Self, FrameError>
where Self: Sized,

Provided Methods§

source

fn decode(frame: &Frame<&'buf [u8]>) -> Result<Self, FrameError>
where Self: Sized,

Object Safety§

This trait is not object safe.

Implementors§