pub trait BinaryDecode: Sized {
    // Required method
    fn binary_decode<R: Read>(reader: &mut R) -> Result<Self>;
}
Expand description

This trait allows to decode objects which encoded by the Thrift Binary protocol encoding.

Required Methods§

source

fn binary_decode<R: Read>(reader: &mut R) -> Result<Self>

Decodes an object.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl BinaryDecode for bool

source§

fn binary_decode<R: Read>(reader: &mut R) -> Result<Self>

source§

impl BinaryDecode for f64

source§

fn binary_decode<R: Read>(reader: &mut R) -> Result<Self>

source§

impl BinaryDecode for i8

source§

fn binary_decode<R: Read>(reader: &mut R) -> Result<Self>

source§

impl BinaryDecode for i16

source§

fn binary_decode<R: Read>(reader: &mut R) -> Result<Self>

source§

impl BinaryDecode for i32

source§

fn binary_decode<R: Read>(reader: &mut R) -> Result<Self>

source§

impl BinaryDecode for i64

source§

fn binary_decode<R: Read>(reader: &mut R) -> Result<Self>

source§

impl BinaryDecode for Vec<u8>

source§

fn binary_decode<R: Read>(reader: &mut R) -> Result<Self>

Implementors§