Trait thrift::protocol::TSerializable

source ·
pub trait TSerializable: Sized {
    // Required methods
    fn read_from_in_protocol(i_prot: &mut dyn TInputProtocol) -> Result<Self>;
    fn write_to_out_protocol(
        &self,
        o_prot: &mut dyn TOutputProtocol,
    ) -> Result<()>;
}
Expand description

Reads and writes the struct to Thrift protocols.

It is implemented in generated code for Thrift struct, union, and enum types.

Required Methods§

source

fn read_from_in_protocol(i_prot: &mut dyn TInputProtocol) -> Result<Self>

source

fn write_to_out_protocol(&self, o_prot: &mut dyn TOutputProtocol) -> Result<()>

Object Safety§

This trait is not object safe.

Implementors§