pub trait SinkConnect: Sized + SurrealSink {
// Required method
fn connect<'life0, 'async_trait>(
config: &'life0 SurrealConfig,
) -> Pin<Box<dyn Future<Output = Result<Self, Error>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
}Expand description
Connect a single Surreal sink implementation from plain config.
In your app, pick one sink type, e.g. run::<Surreal3Sink>(…).
The stock CLI may still auto-detect and branch across both SDKs.
Required Methods§
Sourcefn connect<'life0, 'async_trait>(
config: &'life0 SurrealConfig,
) -> Pin<Box<dyn Future<Output = Result<Self, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
fn connect<'life0, 'async_trait>(
config: &'life0 SurrealConfig,
) -> Pin<Box<dyn Future<Output = Result<Self, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
Connect using endpoint / credentials / ns / db from SurrealConfig.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".