pub struct SimpleJsonProtocolSerializer<B: BufMutExt> { /* private fields */ }
Trait Implementations§
Source§impl<B: BufMutExt> ProtocolWriter for SimpleJsonProtocolSerializer<B>
impl<B: BufMutExt> ProtocolWriter for SimpleJsonProtocolSerializer<B>
type Final = <B as BufMutExt>::Final
fn write_message_begin(&mut self, name: &str, msgtype: MessageType, seqid: u32)
fn write_message_end(&mut self)
fn write_struct_begin(&mut self, _name: &str)
fn write_struct_end(&mut self)
fn write_field_begin(&mut self, name: &str, _type_id: TType, _id: i16)
fn write_field_end(&mut self)
fn write_field_stop(&mut self)
fn write_map_begin( &mut self, _key_type: TType, _value_type: TType, _size: usize, )
fn write_map_key_begin(&mut self)
fn write_map_value_begin(&mut self)
fn write_map_end(&mut self)
fn write_list_begin(&mut self, _elem_type: TType, _size: usize)
fn write_list_value_begin(&mut self)
fn write_list_end(&mut self)
fn write_set_begin(&mut self, elem_type: TType, size: usize)
fn write_set_value_begin(&mut self)
fn write_set_end(&mut self)
fn write_bool(&mut self, value: bool)
fn write_byte(&mut self, value: i8)
fn write_i16(&mut self, value: i16)
fn write_i32(&mut self, value: i32)
fn write_i64(&mut self, value: i64)
fn write_double(&mut self, value: f64)
fn write_float(&mut self, value: f32)
fn write_string(&mut self, value: &str)
fn write_binary(&mut self, value: &[u8])
fn finish(self) -> B::Final
Auto Trait Implementations§
impl<B> Freeze for SimpleJsonProtocolSerializer<B>where
B: Freeze,
impl<B> RefUnwindSafe for SimpleJsonProtocolSerializer<B>where
B: RefUnwindSafe,
impl<B> Send for SimpleJsonProtocolSerializer<B>where
B: Send,
impl<B> Sync for SimpleJsonProtocolSerializer<B>where
B: Sync,
impl<B> Unpin for SimpleJsonProtocolSerializer<B>where
B: Unpin,
impl<B> UnwindSafe for SimpleJsonProtocolSerializer<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