pub struct TBinaryOutputProtocol { /* private fields */ }
Expand description
Encodes messages using the Thrift simple binary encoding.
Implementations§
Source§impl TBinaryOutputProtocol
impl TBinaryOutputProtocol
pub fn new( strict: bool, transport: Rc<RefCell<Box<dyn TTransport>>>, ) -> TBinaryOutputProtocol
Trait Implementations§
Source§impl TOutputProtocol for TBinaryOutputProtocol
impl TOutputProtocol for TBinaryOutputProtocol
Source§fn write_message_begin(&mut self, identifier: &TMessageIdentifier) -> Result<()>
fn write_message_begin(&mut self, identifier: &TMessageIdentifier) -> Result<()>
Write the beginning of a Thrift message to the wire.
Source§fn write_message_end(&mut self) -> Result<()>
fn write_message_end(&mut self) -> Result<()>
Write the end of a Thrift message to the wire.
Source§fn write_struct_begin(&mut self, _: &TStructIdentifier) -> Result<()>
fn write_struct_begin(&mut self, _: &TStructIdentifier) -> Result<()>
Write the beginning of a Thrift struct to the wire.
Source§fn write_struct_end(&mut self) -> Result<()>
fn write_struct_end(&mut self) -> Result<()>
Write the end of a Thrift struct to the wire.
Source§fn write_field_begin(&mut self, identifier: &TFieldIdentifier) -> Result<()>
fn write_field_begin(&mut self, identifier: &TFieldIdentifier) -> Result<()>
Write the beginning of a Thrift field to the wire.
Source§fn write_field_end(&mut self) -> Result<()>
fn write_field_end(&mut self) -> Result<()>
Write the end of a Thrift field to the wire.
Source§fn write_field_stop(&mut self) -> Result<()>
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.
Source§fn write_bytes(&mut self, b: &[u8]) -> Result<()>
fn write_bytes(&mut self, b: &[u8]) -> Result<()>
Write a fixed-length byte array to the wire.
Source§fn write_list_begin(&mut self, identifier: &TListIdentifier) -> Result<()>
fn write_list_begin(&mut self, identifier: &TListIdentifier) -> Result<()>
Write the beginning of a list to the wire.
Source§fn write_list_end(&mut self) -> Result<()>
fn write_list_end(&mut self) -> Result<()>
Write the end of a list to the wire.
Source§fn write_set_begin(&mut self, identifier: &TSetIdentifier) -> Result<()>
fn write_set_begin(&mut self, identifier: &TSetIdentifier) -> Result<()>
Write the beginning of a set to the wire.
Source§fn write_set_end(&mut self) -> Result<()>
fn write_set_end(&mut self) -> Result<()>
Write the end of a set to the wire.
Source§fn write_map_begin(&mut self, identifier: &TMapIdentifier) -> Result<()>
fn write_map_begin(&mut self, identifier: &TMapIdentifier) -> Result<()>
Write the beginning of a map to the wire.
Source§fn write_map_end(&mut self) -> Result<()>
fn write_map_end(&mut self) -> Result<()>
Write the end of a map to the wire.
Auto Trait Implementations§
impl Freeze for TBinaryOutputProtocol
impl !RefUnwindSafe for TBinaryOutputProtocol
impl !Send for TBinaryOutputProtocol
impl !Sync for TBinaryOutputProtocol
impl Unpin for TBinaryOutputProtocol
impl !UnwindSafe for TBinaryOutputProtocol
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more