[−][src]Struct fbthrift_git::binary_protocol::BinaryProtocolDeserializer
Implementations
impl<B: Buf> BinaryProtocolDeserializer<B>
[src]
pub fn new(buffer: B) -> Self
[src]
pub fn into_inner(self) -> B
[src]
Trait Implementations
impl<B: Buf> ProtocolReader for BinaryProtocolDeserializer<B>
[src]
fn read_message_begin<F, T>(
&mut self,
msgfn: F
) -> Result<(T, MessageType, u32)> where
F: FnOnce(&[u8]) -> T,
[src]
&mut self,
msgfn: F
) -> Result<(T, MessageType, u32)> where
F: FnOnce(&[u8]) -> T,
fn read_message_end(&mut self) -> Result<()>
[src]
fn read_struct_begin<F, T>(&mut self, namefn: F) -> Result<T> where
F: FnOnce(&[u8]) -> T,
[src]
F: FnOnce(&[u8]) -> T,
fn read_struct_end(&mut self) -> Result<()>
[src]
fn read_field_begin<F, T>(&mut self, fieldfn: F) -> Result<(T, TType, i16)> where
F: FnOnce(&[u8]) -> T,
[src]
F: FnOnce(&[u8]) -> T,
fn read_field_end(&mut self) -> Result<()>
[src]
fn read_map_begin(&mut self) -> Result<(TType, TType, usize)>
[src]
fn read_map_key_begin(&mut self) -> Result<()>
[src]
fn read_map_value_begin(&mut self) -> Result<()>
[src]
fn read_map_end(&mut self) -> Result<()>
[src]
fn read_list_begin(&mut self) -> Result<(TType, usize)>
[src]
fn read_list_value_begin(&mut self) -> Result<()>
[src]
fn read_list_end(&mut self) -> Result<()>
[src]
fn read_set_begin(&mut self) -> Result<(TType, usize)>
[src]
fn read_set_value_begin(&mut self) -> Result<()>
[src]
fn read_set_end(&mut self) -> Result<()>
[src]
fn read_bool(&mut self) -> Result<bool>
[src]
fn read_byte(&mut self) -> Result<i8>
[src]
fn read_i16(&mut self) -> Result<i16>
[src]
fn read_i32(&mut self) -> Result<i32>
[src]
fn read_i64(&mut self) -> Result<i64>
[src]
fn read_double(&mut self) -> Result<f64>
[src]
fn read_float(&mut self) -> Result<f32>
[src]
fn read_string(&mut self) -> Result<String>
[src]
fn read_binary(&mut self) -> Result<Vec<u8>>
[src]
fn skip(&mut self, field_type: TType) -> Result<()>
[src]
Auto Trait Implementations
impl<B> RefUnwindSafe for BinaryProtocolDeserializer<B> where
B: RefUnwindSafe,
B: RefUnwindSafe,
impl<B> Send for BinaryProtocolDeserializer<B> where
B: Send,
B: Send,
impl<B> Sync for BinaryProtocolDeserializer<B> where
B: Sync,
B: Sync,
impl<B> Unpin for BinaryProtocolDeserializer<B> where
B: Unpin,
B: Unpin,
impl<B> UnwindSafe for BinaryProtocolDeserializer<B> where
B: UnwindSafe,
B: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,