Skip to main content

AcquisitionSource

Trait AcquisitionSource 

Source
pub trait AcquisitionSource: Send + Sync {
    // Required methods
    fn descriptor(&self) -> &SourceDescriptor;
    fn cost_bound(&self, request: &AcquisitionRequest) -> CostBound;
    fn acquire<'a>(
        &'a self,
        call: AcquireCall<'a>,
    ) -> BoxFuture<'a, AcquireReport>;
}
Expand description

An acquisition adapter. Dispatch belongs to the caller, never to the core. Its future uses only std and has no executor or runtime dependency.

Required Methods§

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§