Trait taos_query::prelude::AsyncFetchable

source ·
pub trait AsyncFetchable: Sized + Send + Sync {
    // Required methods
    fn affected_rows(&self) -> i32;
    fn precision(&self) -> Precision;
    fn fields(&self) -> &[Field];
    fn summary(&self) -> (usize, usize);

    // Provided methods
    fn filed_names(&self) -> Vec<&str> { ... }
    fn num_of_fields(&self) -> usize { ... }
    fn blocks(&mut self) -> AsyncBlocks<'_, Self> { ... }
    fn rows(&mut self) -> AsyncRows<'_, Self> { ... }
    fn to_records<'life0, 'async_trait>(
        &'life0 mut self
    ) -> Pin<Box<dyn Future<Output = RawResult<Vec<Vec<Value>>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait { ... }
    fn deserialize<R>(&mut self) -> AsyncDeserialized<'_, Self, R>
       where R: DeserializeOwned { ... }
}

Required Methods§

source

fn affected_rows(&self) -> i32

source

fn precision(&self) -> Precision

source

fn fields(&self) -> &[Field]

source

fn summary(&self) -> (usize, usize)

Provided Methods§

source

fn filed_names(&self) -> Vec<&str>

source

fn num_of_fields(&self) -> usize

source

fn blocks(&mut self) -> AsyncBlocks<'_, Self>

source

fn rows(&mut self) -> AsyncRows<'_, Self>

source

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

Records is a row-based 2-dimension matrix of values.

source

fn deserialize<R>(&mut self) -> AsyncDeserialized<'_, Self, R>

Object Safety§

This trait is not object safe.

Implementors§