Trait 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 = 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§

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 = 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.

Source

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

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.

Implementations on Foreign Types§

Source§

impl AsyncFetchable for ResultSet

Source§

fn affected_rows(&self) -> i32

Source§

fn precision(&self) -> Precision

Source§

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

Source§

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

Source§

impl AsyncFetchable for ResultSet

Source§

fn affected_rows(&self) -> i32

Source§

fn precision(&self) -> Precision

Source§

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

Source§

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

Implementors§