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§
fn new(endpoint: Option<&str>, port: Option<u16>) -> Self
fn query<T, R>( &self, endpoint: &str, data: &T, ) -> impl Future<Output = Result<R>> + Send
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.