Skip to main content

Connection

Trait Connection 

Source
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§

Source

fn is_connected(&self) -> impl Future<Output = bool>

Source

fn execute_query<TQuery>( &self, query: TQuery, ) -> Result<impl Future<Output = Result<Result>>>
where TQuery: TryInto<Query>, Error: From<<TQuery as TryInto<Query>>::Error>,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§