pub trait BinaryEncode {
    // Required method
    fn binary_encode<W: Write>(&self, writer: &mut W) -> Result<()>;
}
Expand description

This trait allows to encode objects to the binaries specified by the Thrift Binary protocol encoding.

Required Methods§

source

fn binary_encode<W: Write>(&self, writer: &mut W) -> Result<()>

Encodes an object.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl BinaryEncode for bool

source§

fn binary_encode<W: Write>(&self, writer: &mut W) -> Result<()>

source§

impl BinaryEncode for f64

source§

fn binary_encode<W: Write>(&self, writer: &mut W) -> Result<()>

source§

impl BinaryEncode for i8

source§

fn binary_encode<W: Write>(&self, writer: &mut W) -> Result<()>

source§

impl BinaryEncode for i16

source§

fn binary_encode<W: Write>(&self, writer: &mut W) -> Result<()>

source§

impl BinaryEncode for i32

source§

fn binary_encode<W: Write>(&self, writer: &mut W) -> Result<()>

source§

impl BinaryEncode for i64

source§

fn binary_encode<W: Write>(&self, writer: &mut W) -> Result<()>

source§

impl<'a> BinaryEncode for &'a [u8]

source§

fn binary_encode<W: Write>(&self, writer: &mut W) -> Result<()>

Implementors§