Trait fluvio_dataplane_protocol::api::ApiMessage
source · [−]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>,
{ ... }
}