pub struct SimpleJsonProtocolDeserializer<B> { /* private fields */ }
Implementations§
Trait Implementations§
Source§impl<B: Buf> Deserialize<SimpleJsonProtocolDeserializer<B>> for Value
impl<B: Buf> Deserialize<SimpleJsonProtocolDeserializer<B>> for Value
fn read(p: &mut SimpleJsonProtocolDeserializer<B>) -> Result<Self>
Source§impl<B: Buf> ProtocolReader for SimpleJsonProtocolDeserializer<B>
impl<B: Buf> ProtocolReader for SimpleJsonProtocolDeserializer<B>
Source§fn skip(&mut self, field_type: TType) -> Result<()>
fn skip(&mut self, field_type: TType) -> Result<()>
Override the default skip impl to handle random JSON noise
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> Freeze for SimpleJsonProtocolDeserializer<B>where
B: Freeze,
impl<B> RefUnwindSafe for SimpleJsonProtocolDeserializer<B>where
B: RefUnwindSafe,
impl<B> Send for SimpleJsonProtocolDeserializer<B>where
B: Send,
impl<B> Sync for SimpleJsonProtocolDeserializer<B>where
B: Sync,
impl<B> Unpin for SimpleJsonProtocolDeserializer<B>where
B: Unpin,
impl<B> UnwindSafe for SimpleJsonProtocolDeserializer<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