pub trait DataProviderProxyInterface: Send + Sync {
type GetSnapshotResponseFut: Future<Output = Result<Snapshot, Error>> + Send;
type GetAnnotationsResponseFut: Future<Output = Result<Annotations, Error>> + Send;
// Required methods
fn get_snapshot(
&self,
params: GetSnapshotParameters,
) -> Self::GetSnapshotResponseFut;
fn get_annotations(
&self,
params: &GetAnnotationsParameters,
) -> Self::GetAnnotationsResponseFut;
}Required Associated Types§
type GetSnapshotResponseFut: Future<Output = Result<Snapshot, Error>> + Send
type GetAnnotationsResponseFut: Future<Output = Result<Annotations, Error>> + Send
Required Methods§
fn get_snapshot( &self, params: GetSnapshotParameters, ) -> Self::GetSnapshotResponseFut
fn get_annotations( &self, params: &GetAnnotationsParameters, ) -> Self::GetAnnotationsResponseFut
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".