pub struct StepContext<'a> {
pub iteration: usize,
pub frame_index: Option<usize>,
pub batch_index: Option<usize>,
pub state: &'a ReconstructionState,
pub diagnostics: &'a Diagnostics,
pub trace: &'a ReconstructionTrace,
pub current_algorithm_metrics: &'a [AlgorithmMetricRecord],
pub model: &'a ImagePlaneModel,
pub problem_name: Option<&'a str>,
}Expand description
Borrowed reconstruction snapshot supplied to non-finish callback hooks.
Fields§
§iteration: usizeOne-based current iteration, or zero at the start hook.
frame_index: Option<usize>Current zero-based acquisition-frame index at frame-end hooks.
batch_index: Option<usize>Current zero-based batch index at frame-end hooks.
state: &'a ReconstructionStateCurrent mutable-run state exposed immutably to callbacks.
diagnostics: &'a DiagnosticsDiagnostics computed because active callbacks requested them.
trace: &'a ReconstructionTraceTrace of iterations completed before or at this hook.
current_algorithm_metrics: &'a [AlgorithmMetricRecord]Algorithm-specific scalar metrics emitted for the current completed iteration.
model: &'a ImagePlaneModelCompiled image-plane model used by the run.
problem_name: Option<&'a str>Optional user-facing reconstruction-problem name.
Auto Trait Implementations§
impl<'a> Freeze for StepContext<'a>
impl<'a> !RefUnwindSafe for StepContext<'a>
impl<'a> Send for StepContext<'a>
impl<'a> Sync for StepContext<'a>
impl<'a> Unpin for StepContext<'a>
impl<'a> UnsafeUnpin for StepContext<'a>
impl<'a> !UnwindSafe for StepContext<'a>
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> 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