pub trait AsBytes {
// Required method
fn as_bytes(&self) -> &[u8] ⓘ;
}Expand description
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.