Trait rdkafka::message::FromBytes [] [src]

pub trait FromBytes {
    type Error;
    fn from_bytes(_: &[u8]) -> Result<&Self, Self::Error>;
}

Given a reference to a byte array, returns a different view of the same data. No copy of the data should be performed.

Associated Types

Required Methods

Implementors