Skip to main content

SnapshotReceiverProxyInterface

Trait SnapshotReceiverProxyInterface 

Source
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§

Required Methods§

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§