pub struct CompactProtocolDeserializer<B> { /* private fields */ }
Implementations§
source§impl<B: BufExt> CompactProtocolDeserializer<B>
impl<B: BufExt> CompactProtocolDeserializer<B>
pub fn new(buffer: B) -> Self
pub fn into_inner(self) -> B
Trait Implementations§
source§impl<B: BufExt> ProtocolReader for CompactProtocolDeserializer<B>
impl<B: BufExt> ProtocolReader for CompactProtocolDeserializer<B>
fn read_message_begin<F, T>( &mut self, msgfn: F ) -> Result<(T, MessageType, u32)>
fn read_message_end(&mut self) -> Result<()>
fn read_struct_begin<F, T>(&mut self, namefn: F) -> Result<T>
fn read_struct_end(&mut self) -> Result<()>
fn read_field_begin<F, T>( &mut self, fieldfn: F, _fields: &[Field] ) -> Result<(T, TType, i16)>
fn read_field_end(&mut self) -> Result<()>
fn read_map_begin(&mut self) -> Result<(TType, TType, Option<usize>)>
fn read_map_key_begin(&mut self) -> Result<bool>
fn read_map_value_begin(&mut self) -> Result<()>
fn read_map_value_end(&mut self) -> Result<()>
fn read_map_end(&mut self) -> Result<()>
fn read_list_begin(&mut self) -> Result<(TType, Option<usize>)>
fn read_list_value_begin(&mut self) -> Result<bool>
fn read_list_value_end(&mut self) -> Result<()>
fn read_list_end(&mut self) -> Result<()>
fn read_set_begin(&mut self) -> Result<(TType, Option<usize>)>
fn read_set_value_begin(&mut self) -> Result<bool>
fn read_set_value_end(&mut self) -> Result<()>
fn read_set_end(&mut self) -> Result<()>
fn read_bool(&mut self) -> Result<bool>
fn read_byte(&mut self) -> Result<i8>
fn read_i16(&mut self) -> Result<i16>
fn read_i32(&mut self) -> Result<i32>
fn read_i64(&mut self) -> Result<i64>
fn read_double(&mut self) -> Result<f64>
fn read_float(&mut self) -> Result<f32>
fn read_string(&mut self) -> Result<String>
fn read_binary<V: CopyFromBuf>(&mut self) -> Result<V>
Auto Trait Implementations§
impl<B> RefUnwindSafe for CompactProtocolDeserializer<B>where
B: RefUnwindSafe,
impl<B> Send for CompactProtocolDeserializer<B>where
B: Send,
impl<B> Sync for CompactProtocolDeserializer<B>where
B: Sync,
impl<B> Unpin for CompactProtocolDeserializer<B>where
B: Unpin,
impl<B> UnwindSafe for CompactProtocolDeserializer<B>where
B: UnwindSafe,
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