Struct parquet_format_safe::thrift::protocol::TCompactOutputProtocol
source · [−]pub struct TCompactOutputProtocol<T> where
T: Write, { /* private fields */ }
Expand description
Write messages using the Thrift compact protocol.
Implementations
sourceimpl<T> TCompactOutputProtocol<T> where
T: Write,
impl<T> TCompactOutputProtocol<T> where
T: Write,
sourcepub fn new(transport: T) -> TCompactOutputProtocol<T>
pub fn new(transport: T) -> TCompactOutputProtocol<T>
Create a TCompactOutputProtocol
that writes bytes to transport
.
Trait Implementations
sourceimpl<T: Debug> Debug for TCompactOutputProtocol<T> where
T: Write,
impl<T: Debug> Debug for TCompactOutputProtocol<T> where
T: Write,
sourceimpl<T> TOutputProtocol for TCompactOutputProtocol<T> where
T: Write,
impl<T> TOutputProtocol for TCompactOutputProtocol<T> where
T: Write,
sourcefn write_message_begin(
&mut self,
identifier: &TMessageIdentifier
) -> Result<usize>
fn write_message_begin(
&mut self,
identifier: &TMessageIdentifier
) -> Result<usize>
Write the beginning of a Thrift message.
sourcefn write_message_end(&mut self) -> Result<usize>
fn write_message_end(&mut self) -> Result<usize>
Write the end of a Thrift message.
sourcefn write_struct_begin(&mut self, _: &TStructIdentifier) -> Result<usize>
fn write_struct_begin(&mut self, _: &TStructIdentifier) -> Result<usize>
Write the beginning of a Thrift struct.
sourcefn write_struct_end(&mut self) -> Result<usize>
fn write_struct_end(&mut self) -> Result<usize>
Write the end of a Thrift struct.
sourcefn write_field_begin(&mut self, identifier: &TFieldIdentifier) -> Result<usize>
fn write_field_begin(&mut self, identifier: &TFieldIdentifier) -> Result<usize>
Write the beginning of a Thrift field.
sourcefn write_field_end(&mut self) -> Result<usize>
fn write_field_end(&mut self) -> Result<usize>
Write the end of a Thrift field.
sourcefn write_field_stop(&mut self) -> Result<usize>
fn write_field_stop(&mut self) -> Result<usize>
Write a STOP field indicating that all the fields in a struct have been written. Read more
sourcefn write_bool(&mut self, b: bool) -> Result<usize>
fn write_bool(&mut self, b: bool) -> Result<usize>
Write a bool.
sourcefn write_bytes(&mut self, b: &[u8]) -> Result<usize>
fn write_bytes(&mut self, b: &[u8]) -> Result<usize>
Write a fixed-length byte array.
sourcefn write_double(&mut self, d: f64) -> Result<usize>
fn write_double(&mut self, d: f64) -> Result<usize>
Write a 64-bit float.
sourcefn write_string(&mut self, s: &str) -> Result<usize>
fn write_string(&mut self, s: &str) -> Result<usize>
Write a fixed-length string.
sourcefn write_list_begin(&mut self, identifier: &TListIdentifier) -> Result<usize>
fn write_list_begin(&mut self, identifier: &TListIdentifier) -> Result<usize>
Write the beginning of a list.
sourcefn write_list_end(&mut self) -> Result<usize>
fn write_list_end(&mut self) -> Result<usize>
Write the end of a list.
sourcefn write_set_begin(&mut self, identifier: &TSetIdentifier) -> Result<usize>
fn write_set_begin(&mut self, identifier: &TSetIdentifier) -> Result<usize>
Write the beginning of a set.
sourcefn write_set_end(&mut self) -> Result<usize>
fn write_set_end(&mut self) -> Result<usize>
Write the end of a set.
sourcefn write_map_begin(&mut self, identifier: &TMapIdentifier) -> Result<usize>
fn write_map_begin(&mut self, identifier: &TMapIdentifier) -> Result<usize>
Write the beginning of a map.
sourcefn write_map_end(&mut self) -> Result<usize>
fn write_map_end(&mut self) -> Result<usize>
Write the end of a map.
Auto Trait Implementations
impl<T> RefUnwindSafe for TCompactOutputProtocol<T> where
T: RefUnwindSafe,
impl<T> Send for TCompactOutputProtocol<T> where
T: Send,
impl<T> Sync for TCompactOutputProtocol<T> where
T: Sync,
impl<T> Unpin for TCompactOutputProtocol<T> where
T: Unpin,
impl<T> UnwindSafe for TCompactOutputProtocol<T> where
T: 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