pub enum PlanStepError {
ToolNotFound(String),
PolicyBlocked {
reason: String,
},
Transient(String),
Deterministic(String),
Timeout,
}Expand description
Typed tool-step failure for escalation without string parsing.
Variants§
Implementations§
Source§impl PlanStepError
impl PlanStepError
pub fn to_message(&self) -> String
Trait Implementations§
Source§impl Clone for PlanStepError
impl Clone for PlanStepError
Source§fn clone(&self) -> PlanStepError
fn clone(&self) -> PlanStepError
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 PlanStepError
impl Debug for PlanStepError
Source§impl<'de> Deserialize<'de> for PlanStepError
impl<'de> Deserialize<'de> for PlanStepError
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for PlanStepError
impl Display for PlanStepError
Source§impl Error for PlanStepError
impl Error for PlanStepError
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 PlanStepError
impl PartialEq for PlanStepError
Source§fn eq(&self, other: &PlanStepError) -> bool
fn eq(&self, other: &PlanStepError) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for PlanStepError
impl Serialize for PlanStepError
impl StructuralPartialEq for PlanStepError
Auto Trait Implementations§
impl Freeze for PlanStepError
impl RefUnwindSafe for PlanStepError
impl Send for PlanStepError
impl Sync for PlanStepError
impl Unpin for PlanStepError
impl UnsafeUnpin for PlanStepError
impl UnwindSafe for PlanStepError
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