pub struct SolverStatus<Sc: Score> {
pub job_id: usize,
pub lifecycle_state: SolverLifecycleState,
pub terminal_reason: Option<SolverTerminalReason>,
pub checkpoint_available: bool,
pub event_sequence: u64,
pub latest_snapshot_revision: Option<u64>,
pub current_score: Option<Sc>,
pub best_score: Option<Sc>,
pub telemetry: SolverTelemetry,
}Fields§
§job_id: usize§lifecycle_state: SolverLifecycleState§terminal_reason: Option<SolverTerminalReason>§checkpoint_available: bool§event_sequence: u64§latest_snapshot_revision: Option<u64>§current_score: Option<Sc>§best_score: Option<Sc>§telemetry: SolverTelemetryImplementations§
Source§impl<Sc: Score> SolverStatus<Sc>
impl<Sc: Score> SolverStatus<Sc>
pub fn is_terminal(&self) -> bool
Trait Implementations§
Source§impl<Sc: Clone + Score> Clone for SolverStatus<Sc>
impl<Sc: Clone + Score> Clone for SolverStatus<Sc>
Source§fn clone(&self) -> SolverStatus<Sc>
fn clone(&self) -> SolverStatus<Sc>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<Sc: Score> StructuralPartialEq for SolverStatus<Sc>
Auto Trait Implementations§
impl<Sc> Freeze for SolverStatus<Sc>where
Sc: Freeze,
impl<Sc> RefUnwindSafe for SolverStatus<Sc>where
Sc: RefUnwindSafe,
impl<Sc> Send for SolverStatus<Sc>
impl<Sc> Sync for SolverStatus<Sc>
impl<Sc> Unpin for SolverStatus<Sc>where
Sc: Unpin,
impl<Sc> UnsafeUnpin for SolverStatus<Sc>where
Sc: UnsafeUnpin,
impl<Sc> UnwindSafe for SolverStatus<Sc>where
Sc: UnwindSafe,
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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