Trait rdkafka::message::ToBytes [] [src]

pub trait ToBytes {
    fn to_bytes(&self) -> &[u8];
}

Given some data, returns the byte representation of that data. No copy of the data should be performed.

Required Methods

Implementors