pub struct TBinaryInputProtocol { /* private fields */ }Expand description
Reads messages encoded using the Thrift simple binary encoding.
Implementations§
Source§impl TBinaryInputProtocol
impl TBinaryInputProtocol
pub fn new( strict: bool, transport: Rc<RefCell<Box<dyn TTransport>>>, ) -> TBinaryInputProtocol
Trait Implementations§
Source§impl TInputProtocol for TBinaryInputProtocol
impl TInputProtocol for TBinaryInputProtocol
Source§fn read_message_begin(&mut self) -> Result<TMessageIdentifier>
fn read_message_begin(&mut self) -> Result<TMessageIdentifier>
Read the beginning of a Thrift message from the wire.
Source§fn read_message_end(&mut self) -> Result<()>
fn read_message_end(&mut self) -> Result<()>
Read the end of a Thrift message from the wire.
Source§fn read_struct_begin(&mut self) -> Result<Option<TStructIdentifier>>
fn read_struct_begin(&mut self) -> Result<Option<TStructIdentifier>>
Read the beginning of a Thrift struct from the wire.
Source§fn read_struct_end(&mut self) -> Result<()>
fn read_struct_end(&mut self) -> Result<()>
Read the end of a Thrift struct from the wire.
Source§fn read_field_begin(&mut self) -> Result<TFieldIdentifier>
fn read_field_begin(&mut self) -> Result<TFieldIdentifier>
Read the beginning of a Thrift struct field from the wire.
Source§fn read_field_end(&mut self) -> Result<()>
fn read_field_end(&mut self) -> Result<()>
Read the end of a Thrift struct field from the wire.
Source§fn read_double(&mut self) -> Result<f64>
fn read_double(&mut self) -> Result<f64>
Read a 64-bit float from the wire.
Source§fn read_string(&mut self) -> Result<String>
fn read_string(&mut self) -> Result<String>
Read a fixed-length string (not null terminated) from the wire.
Source§fn read_list_begin(&mut self) -> Result<TListIdentifier>
fn read_list_begin(&mut self) -> Result<TListIdentifier>
Read the beginning of a list from the wire.
Source§fn read_list_end(&mut self) -> Result<()>
fn read_list_end(&mut self) -> Result<()>
Read the end of a list from the wire.
Source§fn read_set_begin(&mut self) -> Result<TSetIdentifier>
fn read_set_begin(&mut self) -> Result<TSetIdentifier>
Read the beginning of a set from the wire.
Source§fn read_set_end(&mut self) -> Result<()>
fn read_set_end(&mut self) -> Result<()>
Read the end of a set from the wire.
Source§fn read_map_begin(&mut self) -> Result<TMapIdentifier>
fn read_map_begin(&mut self) -> Result<TMapIdentifier>
Read the beginning of a map from the wire.
Source§fn read_map_end(&mut self) -> Result<()>
fn read_map_end(&mut self) -> Result<()>
Read the end of a map from the wire.
Auto Trait Implementations§
impl !RefUnwindSafe for TBinaryInputProtocol
impl !Send for TBinaryInputProtocol
impl !Sync for TBinaryInputProtocol
impl !UnwindSafe for TBinaryInputProtocol
impl Freeze for TBinaryInputProtocol
impl Unpin for TBinaryInputProtocol
impl UnsafeUnpin for TBinaryInputProtocol
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