Struct TCompactInputStreamProtocol

Source
pub struct TCompactInputStreamProtocol<T: Send> { /* private fields */ }

Implementations§

Source§

impl<T: VarIntAsyncReader + AsyncRead + Unpin + Send> TCompactInputStreamProtocol<T>

Source

pub fn new(transport: T) -> Self

Create a TCompactInputProtocol that reads bytes from transport.

Trait Implementations§

Source§

impl<T> AsyncSeek for TCompactInputStreamProtocol<T>
where T: AsyncSeek + Unpin + Send,

Source§

fn poll_seek( self: Pin<&mut Self>, cx: &mut Context<'_>, pos: SeekFrom, ) -> Poll<Result<u64>>

Attempt to seek to an offset, in bytes, in a stream. Read more
Source§

impl<T: Debug + Send> Debug for TCompactInputStreamProtocol<T>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<T: VarIntAsyncReader + AsyncRead + Unpin + Send> TInputStreamProtocol for TCompactInputStreamProtocol<T>

Source§

fn read_message_begin<'life0, 'async_trait>( &'life0 mut self, ) -> Pin<Box<dyn Future<Output = Result<TMessageIdentifier>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Read the beginning of a Thrift message.
Source§

fn read_message_end<'life0, 'async_trait>( &'life0 mut self, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Read the end of a Thrift message.
Source§

fn read_struct_begin<'life0, 'async_trait>( &'life0 mut self, ) -> Pin<Box<dyn Future<Output = Result<Option<TStructIdentifier>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Read the beginning of a Thrift struct.
Source§

fn read_struct_end<'life0, 'async_trait>( &'life0 mut self, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Read the end of a Thrift struct.
Source§

fn read_field_begin<'life0, 'async_trait>( &'life0 mut self, ) -> Pin<Box<dyn Future<Output = Result<TFieldIdentifier>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Read the beginning of a Thrift struct field.
Source§

fn read_field_end<'life0, 'async_trait>( &'life0 mut self, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Read the end of a Thrift struct field.
Source§

fn read_bool<'life0, 'async_trait>( &'life0 mut self, ) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Read a bool.
Source§

fn read_bytes<'life0, 'async_trait>( &'life0 mut self, ) -> Pin<Box<dyn Future<Output = Result<Vec<u8>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Read a fixed-length byte array.
Source§

fn read_i8<'life0, 'async_trait>( &'life0 mut self, ) -> Pin<Box<dyn Future<Output = Result<i8>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Read a word.
Source§

fn read_i16<'life0, 'async_trait>( &'life0 mut self, ) -> Pin<Box<dyn Future<Output = Result<i16>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Read a 16-bit signed integer.
Source§

fn read_i32<'life0, 'async_trait>( &'life0 mut self, ) -> Pin<Box<dyn Future<Output = Result<i32>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Read a 32-bit signed integer.
Source§

fn read_i64<'life0, 'async_trait>( &'life0 mut self, ) -> Pin<Box<dyn Future<Output = Result<i64>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Read a 64-bit signed integer.
Source§

fn read_double<'life0, 'async_trait>( &'life0 mut self, ) -> Pin<Box<dyn Future<Output = Result<f64>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Read a 64-bit float.
Source§

fn read_string<'life0, 'async_trait>( &'life0 mut self, ) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Read a fixed-length string (not null terminated).
Source§

fn read_list_begin<'life0, 'async_trait>( &'life0 mut self, ) -> Pin<Box<dyn Future<Output = Result<TListIdentifier>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Read the beginning of a list.
Source§

fn read_list_end<'life0, 'async_trait>( &'life0 mut self, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Read the end of a list.
Source§

fn read_set_begin<'life0, 'async_trait>( &'life0 mut self, ) -> Pin<Box<dyn Future<Output = Result<TSetIdentifier>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Read the beginning of a set.
Source§

fn read_set_end<'life0, 'async_trait>( &'life0 mut self, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Read the end of a set.
Source§

fn read_map_begin<'life0, 'async_trait>( &'life0 mut self, ) -> Pin<Box<dyn Future<Output = Result<TMapIdentifier>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Read the beginning of a map.
Source§

fn read_map_end<'life0, 'async_trait>( &'life0 mut self, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Read the end of a map.
Source§

fn read_byte<'life0, 'async_trait>( &'life0 mut self, ) -> Pin<Box<dyn Future<Output = Result<u8>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Read an unsigned byte. Read more
Source§

fn skip<'life0, 'async_trait>( &'life0 mut self, field_type: TType, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Skip a field with type field_type recursively until the default maximum skip depth is reached.
Source§

fn skip_till_depth<'life0, 'async_trait>( &'life0 mut self, field_type: TType, depth: i8, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Skip a field with type field_type recursively up to depth levels.

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<S> AsyncSeekExt for S
where S: AsyncSeek + ?Sized,

Source§

fn seek(&mut self, pos: SeekFrom) -> Seek<'_, Self>
where Self: Unpin,

Creates a future which will seek an IO object, and then yield the new position in the object and the object itself. Read more
Source§

fn stream_position(&mut self) -> Seek<'_, Self>
where Self: Unpin,

Creates a future which will return the current seek position from the start of the stream. 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.