Trait quick_protobuf::message::MessageWrite [] [src]

pub trait MessageWrite: Sized {
    fn write_message<W: Write>(&self, w: &mut Writer<W>) -> Result<()>;
    fn get_size(&self) -> usize;

    fn write_file<P: AsRef<Path>>(&self, p: P) -> Result<()> { ... }
}

A trait to handle deserialization based on parsed Fields

Required Methods

Writes Self into W writer

Computes necessary binary size of self once serialized in protobuf

Provided Methods

Writes self into a file

Implementors