Trait kafka::producer::AsBytes [] [src]

pub trait AsBytes {
    fn as_bytes(&self) -> &[u8];
}

A trait used by Producer to obtain the bytes Record::key and Record::value represent. This leaves the choice of the types for key and value with the client.

Required Methods

fn as_bytes(&self) -> &[u8]

Implementors