#[non_exhaustive]pub enum StudyError {
Show 46 variants
SerializeStudyRecord {
source: Error,
},
WriteStudyRecord {
path: PathBuf,
source: Error,
},
StudyRecordTimestamp {
operation: &'static str,
source: Format,
},
SerializeStudyPlan {
source: Error,
},
WriteStudyPlan {
path: PathBuf,
source: Error,
},
StudyPlanConflict {
path: PathBuf,
},
PhaseExecutionFailed {
summary: StudySummary,
source: Box<StudyError>,
},
TerminalAlreadyOwned,
EmptyPhase {
phase: u64,
},
EmptyPhaseSet,
InvalidPhaseLabel {
phase: u64,
},
InvalidPhaseWorkloadLimit {
phase: u64,
},
InvalidPhaseQueueCapacity {
phase: u64,
},
InvalidPhaseTiming {
phase: u64,
setting: &'static str,
},
DuplicatePhaseId {
phase: u64,
},
UnknownPhaseDependency {
phase: u64,
dependency: u64,
},
PhaseDependencyCycle {
phase: u64,
},
UnknownSelectedPhase {
phase: u64,
},
UnsatisfiedPhaseDependency {
phase: u64,
dependency: u64,
},
PhaseConfirmationEof {
phase: u64,
},
PhaseConfirmationInput {
phase: u64,
source: Error,
},
MissingTaskWorkload {
task: String,
},
TaskWorkload {
task: String,
source: Box<dyn Error + Send + Sync + 'static>,
},
TaskTimedOut {
task: String,
timeout: Duration,
},
PhaseDeadlineExceeded {
phase: u64,
deadline_after: Duration,
},
SchedulerPanicked,
Cancelled,
InvalidTaskId {
phase: u64,
},
InvalidTaskCategory {
task: String,
},
DuplicateTaskId {
phase: u64,
task: String,
},
TaskNotFound {
selector: String,
},
TaskSelectorAmbiguous {
selector: String,
first: String,
second: String,
},
UnknownTaskMetadata {
task: String,
key: String,
},
DecodeTaskMetadata {
task: String,
key: String,
source: Error,
},
UnknownTask {
task: String,
},
TaskModeMismatch {
task: String,
requested: &'static str,
actual: &'static str,
},
TaskAlreadyStarted {
identity: String,
},
InitialIterationBeyondTarget {
identity: String,
initial: u64,
target: u64,
},
IterationRegressed {
identity: String,
current: u64,
attempted: u64,
},
IterationBeyondTarget {
identity: String,
iteration: u64,
target: u64,
},
TargetIterationNotReached {
identity: String,
current: u64,
target: u64,
},
StartRenderer {
source: Error,
},
TerminalSetup {
operation: &'static str,
source: Error,
},
RendererUnavailable,
RendererPanicked,
IncompleteProgress {
pending: u64,
running: u64,
failed: u64,
},
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
SerializeStudyRecord
WriteStudyRecord
StudyRecordTimestamp
SerializeStudyPlan
WriteStudyPlan
StudyPlanConflict
PhaseExecutionFailed
TerminalAlreadyOwned
EmptyPhase
EmptyPhaseSet
InvalidPhaseLabel
InvalidPhaseWorkloadLimit
InvalidPhaseQueueCapacity
InvalidPhaseTiming
DuplicatePhaseId
UnknownPhaseDependency
PhaseDependencyCycle
UnknownSelectedPhase
UnsatisfiedPhaseDependency
PhaseConfirmationEof
PhaseConfirmationInput
MissingTaskWorkload
TaskWorkload
TaskTimedOut
PhaseDeadlineExceeded
SchedulerPanicked
Cancelled
InvalidTaskId
InvalidTaskCategory
DuplicateTaskId
TaskNotFound
TaskSelectorAmbiguous
UnknownTaskMetadata
DecodeTaskMetadata
UnknownTask
TaskModeMismatch
TaskAlreadyStarted
InitialIterationBeyondTarget
IterationRegressed
IterationBeyondTarget
TargetIterationNotReached
StartRenderer
TerminalSetup
RendererPanicked
IncompleteProgress
Implementations§
Source§impl StudyError
impl StudyError
pub fn study_summary(&self) -> Option<&StudySummary>
pub fn execution_cause(&self) -> Option<&StudyError>
Trait Implementations§
Source§impl Debug for StudyError
impl Debug for StudyError
Source§impl Display for StudyError
impl Display for StudyError
Source§impl Error for StudyError
impl Error for StudyError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl !RefUnwindSafe for StudyError
impl !UnwindSafe for StudyError
impl Freeze for StudyError
impl Send for StudyError
impl Sync for StudyError
impl Unpin for StudyError
impl UnsafeUnpin for StudyError
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 moreSource§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
Fallible version of
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a
CompactString. Read more