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 = Result<Vec<Vec<Value>>, Error>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: '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 = Result<Vec<Vec<Value>>, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
fn to_records<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<Vec<Vec<Value>>, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
Records is a row-based 2-dimension matrix of values.
fn deserialize<R>(&mut self) -> AsyncDeserialized<'_, Self, R>where
R: DeserializeOwned,
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.