Struct fbthrift::binary_protocol::BinaryProtocolSerializer
source · [−]pub struct BinaryProtocolSerializer<B> { /* private fields */ }
Implementations
sourceimpl<B> BinaryProtocolSerializer<B>
impl<B> BinaryProtocolSerializer<B>
pub fn with_buffer(buffer: B) -> Self
Trait Implementations
sourceimpl<B: BufMutExt> ProtocolWriter for BinaryProtocolSerializer<B>
impl<B: BufMutExt> ProtocolWriter for BinaryProtocolSerializer<B>
type Final = <B as BufMutExt>::Final
fn write_message_begin(&mut self, name: &str, type_id: 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> RefUnwindSafe for BinaryProtocolSerializer<B> where
B: RefUnwindSafe,
impl<B> Send for BinaryProtocolSerializer<B> where
B: Send,
impl<B> Sync for BinaryProtocolSerializer<B> where
B: Sync,
impl<B> Unpin for BinaryProtocolSerializer<B> where
B: Unpin,
impl<B> UnwindSafe for BinaryProtocolSerializer<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