pub struct TCompactInputProtocol { /* private fields */ }
Expand description
Reads messages encoded in the Thrift compact protocol.
Implementations§
Source§impl TCompactInputProtocol
impl TCompactInputProtocol
pub fn new(transport: Rc<RefCell<Box<dyn TTransport>>>) -> TCompactInputProtocol
Trait Implementations§
Source§impl TInputProtocol for TCompactInputProtocol
impl TInputProtocol for TCompactInputProtocol
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 Freeze for TCompactInputProtocol
impl !RefUnwindSafe for TCompactInputProtocol
impl !Send for TCompactInputProtocol
impl !Sync for TCompactInputProtocol
impl Unpin for TCompactInputProtocol
impl !UnwindSafe for TCompactInputProtocol
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