#[non_exhaustive]pub enum ToolProgressUpdateError {
ZeroTotal,
CompletedExceedsTotal {
completed: ExecutionCount,
total: ExecutionCount,
},
}Expand description
Invalid structural progress observation.
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.
ZeroTotal
A known total cannot be zero.
CompletedExceedsTotal
Completed units exceeded the known total.
Trait Implementations§
Source§impl Clone for ToolProgressUpdateError
impl Clone for ToolProgressUpdateError
Source§impl Debug for ToolProgressUpdateError
impl Debug for ToolProgressUpdateError
Source§impl Display for ToolProgressUpdateError
impl Display for ToolProgressUpdateError
impl Eq for ToolProgressUpdateError
Source§impl Error for ToolProgressUpdateError
impl Error for ToolProgressUpdateError
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 ToolProgressUpdateError
impl PartialEq for ToolProgressUpdateError
impl StructuralPartialEq for ToolProgressUpdateError
Auto Trait Implementations§
impl Forget for ToolProgressUpdateError
impl Freeze for ToolProgressUpdateError
impl Move for ToolProgressUpdateError
impl RefUnwindSafe for ToolProgressUpdateError
impl Send for ToolProgressUpdateError
impl Sync for ToolProgressUpdateError
impl Unpin for ToolProgressUpdateError
impl UnsafeUnpin for ToolProgressUpdateError
impl UnwindSafe for ToolProgressUpdateError
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