Struct SimpleJsonProtocolSerializer

Source
pub struct SimpleJsonProtocolSerializer<B: BufMutExt> { /* private fields */ }

Trait Implementations§

Source§

impl<B: BufMutExt> ProtocolWriter for SimpleJsonProtocolSerializer<B>

Source§

type Final = <B as BufMutExt>::Final

Source§

fn write_message_begin(&mut self, name: &str, msgtype: MessageType, seqid: u32)

Source§

fn write_message_end(&mut self)

Source§

fn write_struct_begin(&mut self, _name: &str)

Source§

fn write_struct_end(&mut self)

Source§

fn write_field_begin(&mut self, name: &str, _type_id: TType, _id: i16)

Source§

fn write_field_end(&mut self)

Source§

fn write_field_stop(&mut self)

Source§

fn write_map_begin( &mut self, _key_type: TType, _value_type: TType, _size: usize, )

Source§

fn write_map_key_begin(&mut self)

Source§

fn write_map_value_begin(&mut self)

Source§

fn write_map_end(&mut self)

Source§

fn write_list_begin(&mut self, _elem_type: TType, _size: usize)

Source§

fn write_list_value_begin(&mut self)

Source§

fn write_list_end(&mut self)

Source§

fn write_set_begin(&mut self, elem_type: TType, size: usize)

Source§

fn write_set_value_begin(&mut self)

Source§

fn write_set_end(&mut self)

Source§

fn write_bool(&mut self, value: bool)

Source§

fn write_byte(&mut self, value: i8)

Source§

fn write_i16(&mut self, value: i16)

Source§

fn write_i32(&mut self, value: i32)

Source§

fn write_i64(&mut self, value: i64)

Source§

fn write_double(&mut self, value: f64)

Source§

fn write_float(&mut self, value: f32)

Source§

fn write_string(&mut self, value: &str)

Source§

fn write_binary(&mut self, value: &[u8])

Source§

fn finish(self) -> B::Final

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.