pub trait Connection:
ConnectionPrivate
+ Clone
+ Sync
+ Send {
// Required methods
fn is_connected(&self) -> impl Future<Output = bool>;
fn execute_query<TQuery>(
&self,
query: TQuery,
) -> Result<impl Future<Output = Result<Result>>>
where TQuery: TryInto<Query>,
Error: From<<TQuery as TryInto<Query>>::Error>;
}Expand description
Base trait for kDB Connection
Required Methods§
fn is_connected(&self) -> impl Future<Output = bool>
fn execute_query<TQuery>( &self, query: TQuery, ) -> Result<impl Future<Output = Result<Result>>>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".