pub trait SnapshotReceiverProxyInterface: Send + Sync {
type BatchResponseFut: Future<Output = Result<(), Error>> + Send;
type ReportErrorResponseFut: Future<Output = Result<(), Error>> + Send;
// Required methods
fn batch(&self, batch: &[SnapshotElement]) -> Self::BatchResponseFut;
fn report_error(
&self,
error: CollectorError,
) -> Self::ReportErrorResponseFut;
}Required Associated Types§
type BatchResponseFut: Future<Output = Result<(), Error>> + Send
type ReportErrorResponseFut: Future<Output = Result<(), Error>> + Send
Required Methods§
fn batch(&self, batch: &[SnapshotElement]) -> Self::BatchResponseFut
fn report_error(&self, error: CollectorError) -> Self::ReportErrorResponseFut
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".