Struct rift::protocol::TBinaryOutputProtocol
[−]
[src]
pub struct TBinaryOutputProtocol { /* fields omitted */ }
Encodes messages using the Thrift simple binary encoding.
Methods
impl TBinaryOutputProtocol
[src]
fn new(
strict: bool,
transport: Rc<RefCell<Box<TTransport>>>
) -> TBinaryOutputProtocol
strict: bool,
transport: Rc<RefCell<Box<TTransport>>>
) -> TBinaryOutputProtocol
Trait Implementations
impl TOutputProtocol for TBinaryOutputProtocol
[src]
fn write_message_begin(&mut self, identifier: &TMessageIdentifier) -> Result<()>
Write the beginning of a Thrift message to the wire.
fn write_message_end(&mut self) -> Result<()>
Write the end of a Thrift message to the wire.
fn write_struct_begin(&mut self, _: &TStructIdentifier) -> Result<()>
Write the beginning of a Thrift struct to the wire.
fn write_struct_end(&mut self) -> Result<()>
Write the end of a Thrift struct to the wire.
fn write_field_begin(&mut self, identifier: &TFieldIdentifier) -> Result<()>
Write the beginning of a Thrift field to the wire.
fn write_field_end(&mut self) -> Result<()>
Write the end of a Thrift field to the wire.
fn write_field_stop(&mut self) -> Result<()>
Write a marker indicating that all fields in a Thrift struct have been successfully serialzed to the wire. Read more
fn write_bytes(&mut self, b: &[u8]) -> Result<()>
Write a fixed-length byte array to the wire.
fn write_bool(&mut self, b: bool) -> Result<()>
Write a bool to the wire.
fn write_i8(&mut self, i: i8) -> Result<()>
Write an 8-bit signed integer to the wire.
fn write_i16(&mut self, i: i16) -> Result<()>
Write a 16-bit signed integer to the wire.
fn write_i32(&mut self, i: i32) -> Result<()>
Write a 32-bit signed integer to the wire.
fn write_i64(&mut self, i: i64) -> Result<()>
Write a 64-bit signed integer to the wire.
fn write_double(&mut self, d: f64) -> Result<()>
Write a 64-bit float to the wire.
fn write_string(&mut self, s: &str) -> Result<()>
Write a fixed-length string to the wire.
fn write_list_begin(&mut self, identifier: &TListIdentifier) -> Result<()>
Write the beginning of a list to the wire.
fn write_list_end(&mut self) -> Result<()>
Write the end of a list to the wire.
fn write_set_begin(&mut self, identifier: &TSetIdentifier) -> Result<()>
Write the beginning of a set to the wire.
fn write_set_end(&mut self) -> Result<()>
Write the end of a set to the wire.
fn write_map_begin(&mut self, identifier: &TMapIdentifier) -> Result<()>
Write the beginning of a map to the wire.
fn write_map_end(&mut self) -> Result<()>
Write the end of a map to the wire.
fn flush(&mut self) -> Result<()>
Flush any intermediately buffered bytes to the underlying transport.
fn write_byte(&mut self, b: u8) -> Result<()>
Write an unsigned byte to the wire. Read more