#[non_exhaustive]pub enum CompletionError {
ActiveWork {
metric_id: String,
active: u64,
},
IncompleteTotal {
metric_id: String,
completed: u64,
total: u64,
},
}Expand description
Metric state that prevents checked successful completion.
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.
ActiveWork
Active work remains for one metric.
IncompleteTotal
A known metric total has not been reached.
Trait Implementations§
Source§impl Clone for CompletionError
impl Clone for CompletionError
Source§fn clone(&self) -> CompletionError
fn clone(&self) -> CompletionError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CompletionError
impl Debug for CompletionError
Source§impl Display for CompletionError
impl Display for CompletionError
impl Eq for CompletionError
Source§impl Error for CompletionError
impl Error for CompletionError
1.30.0 · 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()
Source§impl PartialEq for CompletionError
impl PartialEq for CompletionError
impl StructuralPartialEq for CompletionError
Auto Trait Implementations§
impl Freeze for CompletionError
impl RefUnwindSafe for CompletionError
impl Send for CompletionError
impl Sync for CompletionError
impl Unpin for CompletionError
impl UnsafeUnpin for CompletionError
impl UnwindSafe for CompletionError
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