pub struct ChunkJob<I, O> { /* private fields */ }Expand description
A validated single-step chunk job definition.
Implementations§
Source§impl<I, O> ChunkJob<I, O>
impl<I, O> ChunkJob<I, O>
Sourcepub fn new(
name: JobName,
step: ChunkStep<I, O>,
revision: DefinitionRevision,
components: &ChunkComponentRevisions,
) -> Result<Self, DefinitionError>
pub fn new( name: JobName, step: ChunkStep<I, O>, revision: DefinitionRevision, components: &ChunkComponentRevisions, ) -> Result<Self, DefinitionError>
Constructs a chunk job with explicit restart-relevant revisions.
§Errors
Returns DefinitionError::ManifestEncoding if the bounded canonical
manifest cannot be encoded, and
DefinitionError::DeliveryModeMismatch when an installed fault
runtime declares a different delivery mode than the restart contract.
Sourcepub const fn compiled_plan(&self) -> &CompiledExecutionPlan
pub const fn compiled_plan(&self) -> &CompiledExecutionPlan
Borrows the in-memory compatibility plan this wrapper lowers into.
The plan retains the wrapper’s original manifest bytes, format, and fingerprint and records no durable flow decision.
Sourcepub const fn definition_identity(&self) -> &DefinitionIdentity
pub const fn definition_identity(&self) -> &DefinitionIdentity
Borrows the exact restart-relevant definition identity.
Sourcepub fn with_listener(self, listener: Arc<dyn JobExecutionListener>) -> Self
pub fn with_listener(self, listener: Arc<dyn JobExecutionListener>) -> Self
Registers a job listener in deterministic before-order.
Trait Implementations§
Auto Trait Implementations§
impl<I, O> !RefUnwindSafe for ChunkJob<I, O>
impl<I, O> !UnwindSafe for ChunkJob<I, O>
impl<I, O> Freeze for ChunkJob<I, O>
impl<I, O> Send for ChunkJob<I, O>
impl<I, O> Sync for ChunkJob<I, O>
impl<I, O> Unpin for ChunkJob<I, O>
impl<I, O> UnsafeUnpin for ChunkJob<I, O>
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
Mutably borrows from an owned value. Read more
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> ⓘ
Converts
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> ⓘ
Converts
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