#[non_exhaustive]pub enum ToolProcessingError {
Control(ControlError),
InvalidBatch(BatchError),
#[non_exhaustive] NotFreshBatch {
completed: usize,
},
#[non_exhaustive] Processor {
phase: ToolProcessorPhase,
index: usize,
error: ProcessorError,
},
#[non_exhaustive] InvalidProcessorBatch {
phase: ToolProcessorPhase,
index: usize,
error: BatchError,
},
#[non_exhaustive] Handoff {
phase: ToolProcessorPhase,
index: usize,
message: String,
},
#[non_exhaustive] ResultRejected {
call_block_id: BlockId,
error: BatchError,
result: ToolResultPayload,
},
}Expand description
Why controlled processing returned the caller’s current batch early.
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.
Control(ControlError)
The binding’s parent cancellation or deadline stopped processing.
InvalidBatch(BatchError)
The input or internally produced batch is structurally invalid.
#[non_exhaustive]NotFreshBatch
This entry point only accepts new, entirely pending declarations.
Fields
This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
#[non_exhaustive]Processor
A processor returned its own error.
Fields
This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
§
phase: ToolProcessorPhaseProcessing phase.
§
error: ProcessorErrorOriginal processor error.
#[non_exhaustive]InvalidProcessorBatch
A processor returned a structurally invalid batch.
Fields
This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
§
phase: ToolProcessorPhaseProcessing phase.
§
error: BatchErrorOriginal batch validation error.
#[non_exhaustive]Handoff
A processor violated fixed membership or immutable completed facts.
Fields
This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
§
phase: ToolProcessorPhaseProcessing phase.
#[non_exhaustive]ResultRejected
An actual tool result could not be associated with its declaration.
Fields
This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
§
error: BatchErrorOriginal association or installation error.
§
result: ToolResultPayloadActual rejected payload, preserved for diagnosis.
Trait Implementations§
Source§impl Debug for ToolProcessingError
impl Debug for ToolProcessingError
Source§impl Display for ToolProcessingError
impl Display for ToolProcessingError
Source§impl Error for ToolProcessingError
impl Error for ToolProcessingError
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 Forget for ToolProcessingError
impl Freeze for ToolProcessingError
impl Move for ToolProcessingError
impl RefUnwindSafe for ToolProcessingError
impl Send for ToolProcessingError
impl Sync for ToolProcessingError
impl Unpin for ToolProcessingError
impl UnsafeUnpin for ToolProcessingError
impl UnwindSafe for ToolProcessingError
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