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§
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>
sourcefn 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 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.
fn deserialize<R>(&mut self) -> AsyncDeserialized<'_, Self, R>where
R: DeserializeOwned,
Object Safety§
This trait is not object safe.