Trait AsyncBindable

Source
pub trait AsyncBindable<Q>
where Q: AsyncQueryable, Self: Sized,
{ // Required methods fn init<'life0, 'async_trait>( taos: &'life0 Q, ) -> Pin<Box<dyn Future<Output = RawResult<Self>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn init_with_req_id<'life0, 'async_trait>( taos: &'life0 Q, req_id: u64, ) -> Pin<Box<dyn Future<Output = RawResult<Self>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn prepare<'life0, 'life1, 'async_trait>( &'life0 mut self, sql: &'life1 str, ) -> Pin<Box<dyn Future<Output = RawResult<&mut Self>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait; fn set_tbname<'life0, 'life1, 'async_trait>( &'life0 mut self, name: &'life1 str, ) -> Pin<Box<dyn Future<Output = RawResult<&mut Self>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait; fn set_tags<'life0, 'life1, 'async_trait>( &'life0 mut self, tags: &'life1 [Value], ) -> Pin<Box<dyn Future<Output = RawResult<&mut Self>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait; fn bind<'life0, 'life1, 'async_trait>( &'life0 mut self, params: &'life1 [ColumnView], ) -> Pin<Box<dyn Future<Output = RawResult<&mut Self>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait; fn add_batch<'life0, 'async_trait>( &'life0 mut self, ) -> Pin<Box<dyn Future<Output = RawResult<&mut Self>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn execute<'life0, 'async_trait>( &'life0 mut self, ) -> Pin<Box<dyn Future<Output = RawResult<usize>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn affected_rows<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = usize> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; // Provided methods fn set_tbname_tags<'life0, 'life1, 'life2, 'async_trait>( &'life0 mut self, name: &'life1 str, tags: &'life2 [Value], ) -> Pin<Box<dyn Future<Output = RawResult<&mut Self>> + Send + 'async_trait>> where Self: Send + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait { ... } fn result_set<'life0, 'async_trait>( &'life0 mut self, ) -> Pin<Box<dyn Future<Output = RawResult<Q::AsyncResultSet>> + Send + 'async_trait>> where Self: Send + 'async_trait, 'life0: 'async_trait { ... } }

Required Methods§

Source

fn init<'life0, 'async_trait>( taos: &'life0 Q, ) -> Pin<Box<dyn Future<Output = RawResult<Self>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn init_with_req_id<'life0, 'async_trait>( taos: &'life0 Q, req_id: u64, ) -> Pin<Box<dyn Future<Output = RawResult<Self>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn prepare<'life0, 'life1, 'async_trait>( &'life0 mut self, sql: &'life1 str, ) -> Pin<Box<dyn Future<Output = RawResult<&mut Self>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn set_tbname<'life0, 'life1, 'async_trait>( &'life0 mut self, name: &'life1 str, ) -> Pin<Box<dyn Future<Output = RawResult<&mut Self>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn set_tags<'life0, 'life1, 'async_trait>( &'life0 mut self, tags: &'life1 [Value], ) -> Pin<Box<dyn Future<Output = RawResult<&mut Self>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn bind<'life0, 'life1, 'async_trait>( &'life0 mut self, params: &'life1 [ColumnView], ) -> Pin<Box<dyn Future<Output = RawResult<&mut Self>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn add_batch<'life0, 'async_trait>( &'life0 mut self, ) -> Pin<Box<dyn Future<Output = RawResult<&mut Self>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn execute<'life0, 'async_trait>( &'life0 mut self, ) -> Pin<Box<dyn Future<Output = RawResult<usize>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn affected_rows<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = usize> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Provided Methods§

Source

fn set_tbname_tags<'life0, 'life1, 'life2, 'async_trait>( &'life0 mut self, name: &'life1 str, tags: &'life2 [Value], ) -> Pin<Box<dyn Future<Output = RawResult<&mut Self>> + Send + 'async_trait>>
where Self: Send + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Source

fn result_set<'life0, 'async_trait>( &'life0 mut self, ) -> Pin<Box<dyn Future<Output = RawResult<Q::AsyncResultSet>> + Send + 'async_trait>>
where Self: Send + '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.

Implementors§