[][src]Trait fluvio_protocol_core::Decoder

pub trait Decoder: Sized + Default {
    fn decode<T>(&mut self, src: &mut T, version: Version) -> Result<(), Error>
    where
        T: Buf
; fn decode_from<T>(src: &mut T, version: Version) -> Result<Self, Error>
    where
        T: Buf,
        Self: Default
, { ... } }

Required methods

fn decode<T>(&mut self, src: &mut T, version: Version) -> Result<(), Error> where
    T: Buf
[src]

Loading content...

Provided methods

fn decode_from<T>(src: &mut T, version: Version) -> Result<Self, Error> where
    T: Buf,
    Self: Default
[src]

decode Kafka compliant protocol values from buf

Loading content...

Implementations on Foreign Types

impl<M> Decoder for Vec<M> where
    M: Default + Decoder
[src]

impl<M> Decoder for Option<M> where
    M: Default + Decoder
[src]

impl<M> Decoder for PhantomData<M> where
    M: Default + Decoder
[src]

impl<K, V> Decoder for BTreeMap<K, V> where
    K: Decoder + Ord,
    V: Decoder
[src]

impl Decoder for bool[src]

impl Decoder for i8[src]

impl Decoder for u8[src]

impl Decoder for i16[src]

impl Decoder for u16[src]

impl Decoder for i32[src]

impl Decoder for u32[src]

impl Decoder for i64[src]

impl Decoder for String[src]

Loading content...

Implementors

Loading content...