spin_factor_outbound_mysql::client

Trait Client

Source
pub trait Client:
    Send
    + Sync
    + 'static {
    // Required methods
    fn build_client<'life0, 'async_trait>(
        address: &'life0 str,
    ) -> Pin<Box<dyn Future<Output = Result<Self>> + Send + 'async_trait>>
       where Self: Sized + 'async_trait,
             'life0: 'async_trait;
    fn execute<'life0, 'async_trait>(
        &'life0 mut self,
        statement: String,
        params: Vec<ParameterValue>,
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn query<'life0, 'async_trait>(
        &'life0 mut 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 build_client<'life0, 'async_trait>( address: &'life0 str, ) -> Pin<Box<dyn Future<Output = Result<Self>> + Send + 'async_trait>>
where Self: Sized + 'async_trait, 'life0: 'async_trait,

Source

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

Source

fn query<'life0, 'async_trait>( &'life0 mut 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 Conn

Source§

fn build_client<'life0, 'async_trait>( address: &'life0 str, ) -> Pin<Box<dyn Future<Output = Result<Self>> + Send + 'async_trait>>
where Self: Sized + 'async_trait, 'life0: 'async_trait,

Source§

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

Source§

fn query<'life0, 'async_trait>( &'life0 mut 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§