pub trait Client:
Clone
+ 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>,
max_result_bytes: usize,
) -> Pin<Box<dyn Future<Output = Result<RowSet, Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn query_async<'life0, 'async_trait>(
&'life0 self,
statement: String,
params: Vec<ParameterValue>,
max_result_bytes: usize,
) -> Pin<Box<dyn Future<Output = Result<QueryAsyncResult, Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}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>,
max_result_bytes: usize,
) -> Pin<Box<dyn Future<Output = Result<RowSet, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn query_async<'life0, 'async_trait>(
&'life0 self,
statement: String,
params: Vec<ParameterValue>,
max_result_bytes: usize,
) -> Pin<Box<dyn Future<Output = Result<QueryAsyncResult, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
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.