pub enum WorkGraphToolErrorCode {
InvalidArguments,
NotFound,
CapabilityUnavailable,
Conflict,
InvalidTransition,
StoreError,
InternalError,
}Expand description
Typed tool-facing error class for WorkGraph operations.
This is the closed set of semantic error outcomes a WorkGraph tool call can
surface. It is derived directly from WorkGraphError (the canonical domain
error) in [map_error], never re-parsed from text, and serializes to the
stable snake_case wire codes consumed by SDKs. Surfaces map this typed code
onto their own transport numbering (e.g. JSON-RPC) with an exhaustive match.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for WorkGraphToolErrorCode
impl Clone for WorkGraphToolErrorCode
Source§fn clone(&self) -> WorkGraphToolErrorCode
fn clone(&self) -> WorkGraphToolErrorCode
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 moreimpl Copy for WorkGraphToolErrorCode
Source§impl Debug for WorkGraphToolErrorCode
impl Debug for WorkGraphToolErrorCode
Source§impl<'de> Deserialize<'de> for WorkGraphToolErrorCode
impl<'de> Deserialize<'de> for WorkGraphToolErrorCode
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 WorkGraphToolErrorCode
impl Display for WorkGraphToolErrorCode
impl Eq for WorkGraphToolErrorCode
Source§impl PartialEq for WorkGraphToolErrorCode
impl PartialEq for WorkGraphToolErrorCode
Source§fn eq(&self, other: &WorkGraphToolErrorCode) -> bool
fn eq(&self, other: &WorkGraphToolErrorCode) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for WorkGraphToolErrorCode
impl Serialize for WorkGraphToolErrorCode
impl StructuralPartialEq for WorkGraphToolErrorCode
Auto Trait Implementations§
impl Freeze for WorkGraphToolErrorCode
impl RefUnwindSafe for WorkGraphToolErrorCode
impl Send for WorkGraphToolErrorCode
impl Sync for WorkGraphToolErrorCode
impl Unpin for WorkGraphToolErrorCode
impl UnsafeUnpin for WorkGraphToolErrorCode
impl UnwindSafe for WorkGraphToolErrorCode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.