Trait quick_protobuf::message::MessageRead [−][src]
pub trait MessageRead<'a>: Sized { fn from_reader(r: &mut BytesReader, bytes: &'a [u8]) -> Result<Self>; }
A trait to handle deserialization from protocol buffers.
Required Methods
fn from_reader(r: &mut BytesReader, bytes: &'a [u8]) -> Result<Self>
Constructs an instance of Self
by reading from the given bytes
via the given reader.
It does NOT read message length first. If you want to read a variable
length message, use BytesReader::read_message
directly