pub struct ChunkComponentRevisions { /* private fields */ }Expand description
Component revisions for a one-step chunk definition.
Implementations§
Source§impl ChunkComponentRevisions
impl ChunkComponentRevisions
Sourcepub const fn new(
reader: ComponentRevision,
processor: ComponentRevision,
writer: ComponentRevision,
checkpoint: ComponentRevision,
restart: ChunkRestartContract,
) -> ChunkComponentRevisions
pub const fn new( reader: ComponentRevision, processor: ComponentRevision, writer: ComponentRevision, checkpoint: ComponentRevision, restart: ChunkRestartContract, ) -> ChunkComponentRevisions
Constructs the four restart-relevant chunk component revisions.
Registers no ItemStream namespaces and no completion-policy
revision; use with_stream_revision and
with_completion_policy_revision
to add them.
Sourcepub fn with_stream_revision(
self,
identity: ComponentStreamIdentity,
revision: ComponentRevision,
) -> ChunkComponentRevisions
pub fn with_stream_revision( self, identity: ComponentStreamIdentity, revision: ComponentRevision, ) -> ChunkComponentRevisions
Registers one ItemStream namespace’s restart-relevant revision.
Namespaces are kept in a deterministic (sorted, not insertion) order so the manifest and fingerprint never depend on registration order. A definition with no registered streams produces a manifest and fingerprint byte-for-byte identical to one built before this method existed.
Sourcepub fn stream_revisions(
&self,
) -> impl Iterator<Item = (&ComponentStreamIdentity, &ComponentRevision)>
pub fn stream_revisions( &self, ) -> impl Iterator<Item = (&ComponentStreamIdentity, &ComponentRevision)>
Iterates registered ItemStream namespace revisions in deterministic
(sorted) order.
Sourcepub fn with_completion_policy_revision(
self,
revision: ComponentRevision,
) -> ChunkComponentRevisions
pub fn with_completion_policy_revision( self, revision: ComponentRevision, ) -> ChunkComponentRevisions
Records the restart-relevant revision of an installed
crate::CompletionPolicy
(an early-completion policy supplementing the chunk’s ChunkSize
ceiling).
A definition with no completion policy installed produces a manifest and fingerprint byte-for-byte identical to one built before this method existed.
Sourcepub const fn completion_policy_revision(&self) -> Option<&ComponentRevision>
pub const fn completion_policy_revision(&self) -> Option<&ComponentRevision>
Borrows the completion policy’s restart-relevant revision, if one was registered.
Sourcepub const fn delivery_mode(&self) -> ChunkDeliveryMode
pub const fn delivery_mode(&self) -> ChunkDeliveryMode
Returns the delivery mode declared by the restart contract.
Sourcepub const fn in_flight_policy(&self) -> InFlightPolicy
pub const fn in_flight_policy(&self) -> InFlightPolicy
Returns the shutdown policy of an already-open chunk.
Sourcepub const fn reader(&self) -> &ComponentRevision
pub const fn reader(&self) -> &ComponentRevision
Borrows the revision of the component that reads items.
Sourcepub const fn processor(&self) -> &ComponentRevision
pub const fn processor(&self) -> &ComponentRevision
Borrows the revision of the component that processes items.
Sourcepub const fn writer(&self) -> &ComponentRevision
pub const fn writer(&self) -> &ComponentRevision
Borrows the revision of the component that writes items.
Sourcepub const fn checkpoint(&self) -> &ComponentRevision
pub const fn checkpoint(&self) -> &ComponentRevision
Borrows the revision of the component that produces checkpoints.
Sourcepub const fn checkpoint_schema(&self) -> &StateSchemaId
pub const fn checkpoint_schema(&self) -> &StateSchemaId
Borrows the declared checkpoint schema.
Sourcepub const fn checkpoint_schema_version(&self) -> StateSchemaVersion
pub const fn checkpoint_schema_version(&self) -> StateSchemaVersion
Returns the declared checkpoint schema version.
Sourcepub const fn context_schema(&self) -> &StateSchemaId
pub const fn context_schema(&self) -> &StateSchemaId
Borrows the declared execution-context schema.
Sourcepub const fn context_schema_version(&self) -> StateSchemaVersion
pub const fn context_schema_version(&self) -> StateSchemaVersion
Returns the declared execution-context schema version.
Trait Implementations§
Source§impl Clone for ChunkComponentRevisions
impl Clone for ChunkComponentRevisions
Source§fn clone(&self) -> ChunkComponentRevisions
fn clone(&self) -> ChunkComponentRevisions
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ChunkComponentRevisions
impl Debug for ChunkComponentRevisions
impl Eq for ChunkComponentRevisions
Source§impl PartialEq for ChunkComponentRevisions
impl PartialEq for ChunkComponentRevisions
impl StructuralPartialEq for ChunkComponentRevisions
Auto Trait Implementations§
impl Freeze for ChunkComponentRevisions
impl RefUnwindSafe for ChunkComponentRevisions
impl Send for ChunkComponentRevisions
impl Sync for ChunkComponentRevisions
impl Unpin for ChunkComponentRevisions
impl UnsafeUnpin for ChunkComponentRevisions
impl UnwindSafe for ChunkComponentRevisions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§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