Skip to main content

SubBatchSender

Trait SubBatchSender 

Source
pub trait SubBatchSender: Send + Sync {
    // Required method
    fn send(
        &self,
        request: SubBatchRequest,
    ) -> impl Future<Output = Result<SubBatchResponse, AiTransportError>> + Send + '_;
}
Expand description

Backend abstraction. Production uses AiTransportSender; tests use mocks.

Required Methods§

Source

fn send( &self, request: SubBatchRequest, ) -> impl Future<Output = Result<SubBatchResponse, AiTransportError>> + 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.

Implementors§