pub struct BinaryProtocolDeserializer<B> { /* private fields */ }
Implementations
sourceimpl<B: BufExt> BinaryProtocolDeserializer<B>
impl<B: BufExt> BinaryProtocolDeserializer<B>
pub fn new(buffer: B) -> Self
pub fn into_inner(self) -> B
Trait Implementations
sourceimpl<B: BufExt> ProtocolReader for BinaryProtocolDeserializer<B>
impl<B: BufExt> ProtocolReader for BinaryProtocolDeserializer<B>
fn read_message_begin<F, T>(&mut self, msgfn: F) -> Result<(T, MessageType, u32)> where
F: FnOnce(&[u8]) -> T,
fn read_message_end(&mut self) -> Result<()>
fn read_struct_begin<F, T>(&mut self, namefn: F) -> Result<T> where
F: FnOnce(&[u8]) -> T,
fn read_struct_end(&mut self) -> Result<()>
fn read_field_begin<F, T>(
&mut self,
fieldfn: F,
_fields: &[Field]
) -> Result<(T, TType, i16)> where
F: FnOnce(&[u8]) -> T,
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 BinaryProtocolDeserializer<B> where
B: RefUnwindSafe,
impl<B> Send for BinaryProtocolDeserializer<B> where
B: Send,
impl<B> Sync for BinaryProtocolDeserializer<B> where
B: Sync,
impl<B> Unpin for BinaryProtocolDeserializer<B> where
B: Unpin,
impl<B> UnwindSafe for BinaryProtocolDeserializer<B> where
B: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more