#[non_exhaustive]pub enum ToolProgressError {
StatePoisoned,
ConcurrentEmission,
MaximumReached {
maximum: ExecutionCount,
},
NotIncreasing {
previous: ExecutionCount,
actual: ExecutionCount,
},
TotalChanged {
expected: ExecutionCount,
actual: ExecutionCount,
},
CompletedExceedsEstablishedTotal {
completed: ExecutionCount,
total: ExecutionCount,
},
Sink {
source: ToolProgressSinkError,
},
}Expand description
Failure to emit an ordered tool progress event.
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.
StatePoisoned
A previous sink failure, dropped future, or mutex panic poisoned ordering.
ConcurrentEmission
Another progress emission has not completed.
MaximumReached
The finite descriptor event ceiling was reached.
Fields
§
maximum: ExecutionCountDescriptor progress-event ceiling.
NotIncreasing
Completed units did not strictly increase.
Fields
§
previous: ExecutionCountLast accepted completed units.
§
actual: ExecutionCountRejected completed units.
TotalChanged
A tool tried to change a previously established total.
Fields
§
expected: ExecutionCountPreviously established total.
§
actual: ExecutionCountRejected new total.
CompletedExceedsEstablishedTotal
Completed units exceeded a total established by an earlier event.
Fields
§
completed: ExecutionCountRejected completed units.
§
total: ExecutionCountPreviously established total.
Sink
Runtime progress sink rejected an otherwise valid ordered event.
Fields
§
source: ToolProgressSinkErrorPrivate sink diagnostic.
Trait Implementations§
Source§impl Clone for ToolProgressError
impl Clone for ToolProgressError
Source§impl Debug for ToolProgressError
impl Debug for ToolProgressError
Source§impl Display for ToolProgressError
impl Display for ToolProgressError
Source§impl Error for ToolProgressError
impl Error for ToolProgressError
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 ToolProgressError
impl !UnwindSafe for ToolProgressError
impl Forget for ToolProgressError
impl Freeze for ToolProgressError
impl Move for ToolProgressError
impl Send for ToolProgressError
impl Sync for ToolProgressError
impl Unpin for ToolProgressError
impl UnsafeUnpin for ToolProgressError
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