Trait fluvio_protocol_api::ApiMessage[][src]

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

Associated Types

Loading content...

Required methods

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

Loading content...

Provided methods

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

fn decode_from_file<P: AsRef<Path>>(file_name: P) -> Result<Self, IoError>[src]

Loading content...

Implementors

Loading content...