Trait fluvio_dataplane_protocol::api::ApiMessage[]

pub trait ApiMessage: Default {
    type ApiKey: Decoder + Debug;
    fn decode_with_header<T>(
        src: &mut T,
        header: RequestHeader
    ) -> Result<Self, Error>
    where
        Self: Default,
        T: Buf,
        Self::ApiKey: Sized
; fn decode_from<T>(src: &mut T) -> Result<Self, Error>
    where
        T: Buf
, { ... }
fn decode_from_file<P>(file_name: P) -> Result<Self, Error>
    where
        P: AsRef<Path>
, { ... } }

Associated Types

Required methods

fn decode_with_header<T>(
    src: &mut T,
    header: RequestHeader
) -> Result<Self, Error> where
    Self: Default,
    T: Buf,
    Self::ApiKey: Sized

Provided methods

fn decode_from<T>(src: &mut T) -> Result<Self, Error> where
    T: Buf

fn decode_from_file<P>(file_name: P) -> Result<Self, Error> where
    P: AsRef<Path>, 

Implementors