Skip to main content

TierSink

Trait TierSink 

Source
pub trait TierSink {
    // Required method
    fn open_session(
        &self,
        asset_id: &str,
        blob: &TierBlob,
    ) -> impl Future<Output = Result<TierSessionOutcome, StagedError>> + Send;
}
Expand description

The network seam the scheduler drives to open one tier’s upload session. Kept a trait so the ordering + gating are exercised by a deterministic recording mock; UploadClientTierSink is the production impl over the hand-written upload client.

Required Methods§

Source

fn open_session( &self, asset_id: &str, blob: &TierBlob, ) -> impl Future<Output = Result<TierSessionOutcome, StagedError>> + Send

Open (and drive to completion) the upload session for blob of asset_id.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§