pub enum ProgressError {
NotFinite(Progress),
NotIncreasing {
previous: f64,
reported: Progress,
},
}Expand description
A progress report that no receiver could make sense of.
Both variants are bugs in the reporting tool, so they are returned to it rather than papered over.
Variants§
NotFinite(Progress)
progress or total was NaN or infinite.
NotIncreasing
progress did not exceed the previous report’s. Progress must increase
with every report, even when the total is unknown.
Trait Implementations§
Source§impl Clone for ProgressError
impl Clone for ProgressError
Source§impl Debug for ProgressError
impl Debug for ProgressError
Source§impl Display for ProgressError
impl Display for ProgressError
Source§impl Error for ProgressError
impl Error for ProgressError
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 ProgressError
impl PartialEq for ProgressError
impl StructuralPartialEq for ProgressError
Auto Trait Implementations§
impl Freeze for ProgressError
impl RefUnwindSafe for ProgressError
impl Send for ProgressError
impl Sync for ProgressError
impl Unpin for ProgressError
impl UnsafeUnpin for ProgressError
impl UnwindSafe for ProgressError
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