Client

Trait Client 

Source
pub trait Client:
    Send
    + Sync
    + 'static {
    // Required methods
    fn execute<'life0, 'async_trait>(
        &'life0 self,
        statement: String,
        params: Vec<ParameterValue>,
    ) -> Pin<Box<dyn Future<Output = Result<u64, Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn query<'life0, 'async_trait>(
        &'life0 self,
        statement: String,
        params: Vec<ParameterValue>,
    ) -> Pin<Box<dyn Future<Output = Result<RowSet, Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

Source

fn execute<'life0, 'async_trait>( &'life0 self, statement: String, params: Vec<ParameterValue>, ) -> Pin<Box<dyn Future<Output = Result<u64, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn query<'life0, 'async_trait>( &'life0 self, statement: String, params: Vec<ParameterValue>, ) -> Pin<Box<dyn Future<Output = Result<RowSet, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementations on Foreign Types§

Source§

impl Client for Object

Source§

fn execute<'life0, 'async_trait>( &'life0 self, statement: String, params: Vec<ParameterValue>, ) -> Pin<Box<dyn Future<Output = Result<u64, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn query<'life0, 'async_trait>( &'life0 self, statement: String, params: Vec<ParameterValue>, ) -> Pin<Box<dyn Future<Output = Result<RowSet, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§