Trait fluvio::dataplane::api::ApiMessage

source ·
pub trait ApiMessage: Sized + Default {
    type ApiKey: Decoder + Debug;

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

    // 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> { ... }
}

Required Associated Types§

Required Methods§

source

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

Provided Methods§

source

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

source

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

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl ApiMessage for AdminPublicDecodedRequest

source§

impl ApiMessage for SpuClientRequest

source§

impl ApiMessage for SpuServerRequest

Implementors§