pub struct StreamingOptions<'a, U: AssetUploader, V: StorageVerifier> {
pub config: &'a ImportConfig,
pub source: &'a SourceMetadataIndex,
pub uploader: &'a U,
pub verifier: &'a V,
pub headroom_margin: u64,
pub cancel: &'a CancellationToken,
}Expand description
Everything the streaming window needs beyond the plan, the workspace, and the event sink.
One struct rather than six positionals: the two entry points this replaced differed only in
source and carried eight and nine arguments respectively, both behind a
#[allow(clippy::too_many_arguments)]. A caller that wants no source-adapter enrichment
passes &SourceMetadataIndex::empty(), which is exactly what the thinner of the two
entry points did for it.
Fields§
§config: &'a ImportConfigThe planner configuration the run was confirmed against.
source: &'a SourceMetadataIndexFolded metadata a third-party source adapter extracted,
attached to each file it covers. SourceMetadataIndex::empty for a plain filesystem
drive; files the index does not cover import identically either way.
uploader: &'a UThe injected upload seam. capsule-core performs no network I/O of its own.
verifier: &'a VThe injected durability/custody seam behind the release gate.
headroom_margin: u64The free-space cushion the minimum-headroom check and the implicit recommendation apply.
cancel: &'a CancellationTokenHonored at every window boundary.
Auto Trait Implementations§
impl<'a, U, V> Freeze for StreamingOptions<'a, U, V>
impl<'a, U, V> RefUnwindSafe for StreamingOptions<'a, U, V>where
U: RefUnwindSafe,
V: RefUnwindSafe,
impl<'a, U, V> Send for StreamingOptions<'a, U, V>
impl<'a, U, V> Sync for StreamingOptions<'a, U, V>
impl<'a, U, V> Unpin for StreamingOptions<'a, U, V>
impl<'a, U, V> UnsafeUnpin for StreamingOptions<'a, U, V>
impl<'a, U, V> UnwindSafe for StreamingOptions<'a, U, V>where
U: RefUnwindSafe,
V: RefUnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more