Struct fluvio_protocol_codec::FluvioCodec[][src]

pub struct FluvioCodec {}

Implement Kafka codec as in https://kafka.apache.org/protocol#The_Messages_ListOffsets First 4 bytes are size of the message. Then total buffer = 4 + message content

Implementations

impl FluvioCodec[src]

pub fn new() -> Self[src]

Trait Implementations

impl Debug for FluvioCodec[src]

impl Decoder for FluvioCodec[src]

type Item = BytesMut

The type of decoded frames.

type Error = IoError

The type of unrecoverable frame decoding errors. Read more

impl Default for FluvioCodec[src]

impl Encoder<Bytes> for FluvioCodec[src]

Implement encoder for Kafka Codec This is straight pass thru, actual encoding is done file slice

type Error = IoError

The type of encoding errors. Read more

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.