Skip to main content

ChunkComponentRevisions

Struct ChunkComponentRevisions 

Source
pub struct ChunkComponentRevisions { /* private fields */ }
Expand description

Component revisions for a one-step chunk definition.

Implementations§

Source§

impl ChunkComponentRevisions

Source

pub const fn new( reader: ComponentRevision, processor: ComponentRevision, writer: ComponentRevision, checkpoint: ComponentRevision, restart: ChunkRestartContract, ) -> Self

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.

Source

pub fn with_stream_revision( self, identity: ComponentStreamIdentity, revision: ComponentRevision, ) -> Self

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.

Source

pub fn stream_revisions( &self, ) -> impl Iterator<Item = (&ComponentStreamIdentity, &ComponentRevision)>

Iterates registered ItemStream namespace revisions in deterministic (sorted) order.

Source

pub fn with_completion_policy_revision( self, revision: ComponentRevision, ) -> Self

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.

Source

pub const fn completion_policy_revision(&self) -> Option<&ComponentRevision>

Borrows the completion policy’s restart-relevant revision, if one was registered.

Source

pub const fn delivery_mode(&self) -> ChunkDeliveryMode

Returns the delivery mode declared by the restart contract.

Source

pub const fn in_flight_policy(&self) -> InFlightPolicy

Returns the shutdown policy of an already-open chunk.

Source

pub const fn reader(&self) -> &ComponentRevision

Borrows the revision of the component that reads items.

Source

pub const fn processor(&self) -> &ComponentRevision

Borrows the revision of the component that processes items.

Source

pub const fn writer(&self) -> &ComponentRevision

Borrows the revision of the component that writes items.

Source

pub const fn checkpoint(&self) -> &ComponentRevision

Borrows the revision of the component that produces checkpoints.

Source

pub const fn checkpoint_schema(&self) -> &StateSchemaId

Borrows the declared checkpoint schema.

Source

pub const fn checkpoint_schema_version(&self) -> StateSchemaVersion

Returns the declared checkpoint schema version.

Source

pub const fn context_schema(&self) -> &StateSchemaId

Borrows the declared execution-context schema.

Source

pub const fn context_schema_version(&self) -> StateSchemaVersion

Returns the declared execution-context schema version.

Trait Implementations§

Source§

impl Clone for ChunkComponentRevisions

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ChunkComponentRevisions

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for ChunkComponentRevisions

Source§

impl PartialEq for ChunkComponentRevisions

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for ChunkComponentRevisions

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.