Trait HelixDBClient

Source
pub trait HelixDBClient {
    // Required methods
    fn new(endpoint: Option<&str>, port: Option<u16>) -> Self;
    fn query<T, R>(
        &self,
        endpoint: &str,
        data: &T,
    ) -> impl Future<Output = Result<R>> + Send
       where T: Serialize + Sync,
             R: for<'de> Deserialize<'de>;
}

Required Methods§

Source

fn new(endpoint: Option<&str>, port: Option<u16>) -> Self

Source

fn query<T, R>( &self, endpoint: &str, data: &T, ) -> impl Future<Output = Result<R>> + Send
where T: Serialize + Sync, R: for<'de> Deserialize<'de>,

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§