Skip to main content

ReportingError

Enum ReportingError 

Source
#[non_exhaustive]
pub enum ReportingError {
Show 17 variants Configuration(ConfigurationError), TerminalAlreadyOwned, TaskCountTooLarge { task_count: u64, }, DuplicateIdentityParameter { key: String, }, UnknownIdentityParameter { key: String, }, NonUniqueTaskIdentity { identity: String, first_ordinal: u64, second_ordinal: u64, }, UnknownTaskOrdinal { task_ordinal: u64, }, TaskIdentityMismatch { task_ordinal: u64, }, 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, }, RendererUnavailable, RendererPanicked, IncompleteProgress { pending: u64, running: u64, failed: u64, },
}
Expand description

Failure while configuring, updating, or finalizing progress reporting.

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.
§

Configuration(ConfigurationError)

Project configuration could not supply a required task or identity value.

§

TerminalAlreadyOwned

Another live reporter already owns process terminal rendering.

§

TaskCountTooLarge

The validated task count cannot be represented by this platform.

Fields

§task_count: u64

Validated project task count.

§

DuplicateIdentityParameter

One identity key was supplied more than once.

Fields

§key: String

Repeated exact parameter name.

§

UnknownIdentityParameter

One requested identity key is absent from project parameters.

Fields

§key: String

Missing exact parameter name.

§

NonUniqueTaskIdentity

Two generated tasks have the same selected parameter identity.

Fields

§identity: String

Deterministic rendered parameter identity.

§first_ordinal: u64

First colliding automatically assigned ordinal.

§second_ordinal: u64

Second colliding automatically assigned ordinal.

§

UnknownTaskOrdinal

A task handle does not belong to the reporter’s configured task space.

Fields

§task_ordinal: u64

Automatically assigned ordinal obtained from TaskConfig.

§

TaskIdentityMismatch

A task handle’s selected identity differs from the registered project.

Fields

§task_ordinal: u64

Automatically assigned task ordinal.

§

TaskAlreadyStarted

The same task was started more than once.

Fields

§identity: String

Human-readable parameter identity.

§

InitialIterationBeyondTarget

Initial progress lies beyond a known target.

Fields

§identity: String

Human-readable parameter identity.

§initial: u64

Initial absolute simulation iteration.

§target: u64

Target absolute simulation iteration.

§

IterationRegressed

A progress update attempted to move scientific iteration backward.

Fields

§identity: String

Human-readable parameter identity.

§current: u64

Previously reported iteration.

§attempted: u64

Rejected iteration.

§

IterationBeyondTarget

A progress update exceeded a known target.

Fields

§identity: String

Human-readable parameter identity.

§iteration: u64

Rejected absolute simulation iteration.

§target: u64

Configured absolute target iteration.

§

TargetIterationNotReached

Completion was requested before a known target was reached.

Fields

§identity: String

Human-readable parameter identity.

§current: u64

Last reported absolute simulation iteration.

§target: u64

Configured absolute target iteration.

§

StartRenderer

The sole renderer thread could not be created.

Fields

§source: Error

Underlying thread-creation failure.

§

RendererUnavailable

The renderer stopped before accepting a requested message.

§

RendererPanicked

The renderer thread panicked while the reporter was active.

§

IncompleteProgress

Successful finalization was requested before every task completed.

Fields

§pending: u64

Tasks that never started.

§running: u64

Tasks that have not reached a terminal status.

§failed: u64

Tasks that failed or dropped before completion.

Trait Implementations§

Source§

impl Debug for ReportingError

Source§

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

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

impl Display for ReportingError

Source§

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

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

impl Error for ReportingError

Source§

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

👎Deprecated since 1.42.0:

use the Display impl or to_string()

1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
Source§

impl From<ConfigurationError> for ReportingError

Source§

fn from(source: ConfigurationError) -> Self

Converts to this type from the input type.

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> 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> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

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

Source§

type Error = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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.