Skip to main content

TAsyncBinaryProtocol

Struct TAsyncBinaryProtocol 

Source
pub struct TAsyncBinaryProtocol<R> { /* private fields */ }

Implementations§

Source§

impl<R> TAsyncBinaryProtocol<R>
where R: AsyncRead + Unpin + Send,

Source

pub fn new(reader: R) -> Self

Trait Implementations§

Source§

impl<R> TAsyncInputProtocol for TAsyncBinaryProtocol<R>
where R: AsyncRead + Unpin + Send,

Source§

async fn read_message_begin( &mut self, ) -> Result<TMessageIdentifier, ThriftException>

Read the beginning of a Thrift message.
Source§

async fn read_message_end(&mut self) -> Result<(), ThriftException>

Read the end of a Thrift message.
Source§

async fn read_struct_begin( &mut self, ) -> Result<Option<TStructIdentifier>, ThriftException>

Read the beginning of a Thrift struct.
Source§

async fn read_struct_end(&mut self) -> Result<(), ThriftException>

Read the end of a Thrift struct.
Source§

async fn read_field_begin( &mut self, ) -> Result<TFieldIdentifier, ThriftException>

Read the beginning of a Thrift struct field.
Source§

async fn read_field_end(&mut self) -> Result<(), ThriftException>

Read the end of a Thrift struct field.
Source§

async fn read_bool(&mut self) -> Result<bool, ThriftException>

Read a bool.
Source§

async fn read_bytes(&mut self) -> Result<Bytes, ThriftException>

Read a binary.
Source§

async fn read_bytes_vec(&mut self) -> Result<Vec<u8>, ThriftException>

Read a binary, return Vec<u8>
Source§

async fn read_uuid(&mut self) -> Result<[u8; 16], ThriftException>

Read a uuid.
Source§

async fn read_string(&mut self) -> Result<String, ThriftException>

Read a string.
Source§

async fn read_faststr(&mut self) -> Result<FastStr, ThriftException>

Read a string, return FastStr
Source§

async fn read_byte(&mut self) -> Result<u8, ThriftException>

Read a byte.
Source§

async fn read_i8(&mut self) -> Result<i8, ThriftException>

Read a word.
Source§

async fn read_i16(&mut self) -> Result<i16, ThriftException>

Read a 16-bit signed integer.
Source§

async fn read_i32(&mut self) -> Result<i32, ThriftException>

Read a 32-bit signed integer.
Source§

async fn read_i64(&mut self) -> Result<i64, ThriftException>

Read a 64-bit signed integer.
Source§

async fn read_double(&mut self) -> Result<f64, ThriftException>

Read a 64-bit float.
Source§

async fn read_list_begin(&mut self) -> Result<TListIdentifier, ThriftException>

Read the beginning of a list.
Source§

async fn read_list_end(&mut self) -> Result<(), ThriftException>

Read the end of a list.
Source§

async fn read_set_begin(&mut self) -> Result<TSetIdentifier, ThriftException>

Read the beginning of a set.
Source§

async fn read_set_end(&mut self) -> Result<(), ThriftException>

Read the end of a set.
Source§

async fn read_map_begin(&mut self) -> Result<TMapIdentifier, ThriftException>

Read the beginning of a map.
Source§

async fn read_map_end(&mut self) -> Result<(), ThriftException>

Read the end of a map.
Source§

fn skip( &mut self, field_type: TType, ) -> impl Future<Output = Result<(), ThriftException>> + Send

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

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

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

Auto Trait Implementations§

§

impl<R> Freeze for TAsyncBinaryProtocol<R>
where R: Freeze,

§

impl<R> RefUnwindSafe for TAsyncBinaryProtocol<R>
where R: RefUnwindSafe,

§

impl<R> Send for TAsyncBinaryProtocol<R>
where R: Send,

§

impl<R> Sync for TAsyncBinaryProtocol<R>
where R: Sync,

§

impl<R> Unpin for TAsyncBinaryProtocol<R>
where R: Unpin,

§

impl<R> UnsafeUnpin for TAsyncBinaryProtocol<R>
where R: UnsafeUnpin,

§

impl<R> UnwindSafe for TAsyncBinaryProtocol<R>
where R: UnwindSafe,

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.