pub enum ServiceErrorKind {
Validation,
Timeout,
RateLimited,
AuthRejected,
UpstreamUnavailable,
Execution,
Internal,
}Expand description
High-level category of a service/tool failure, driving HTTP status,
retryability, and the kind field rendered to REST and MCP clients.
Variants§
Validation
Input failed validation (bad or missing arguments).
Timeout
The operation exceeded its time budget.
RateLimited
The caller or upstream hit a rate limit.
AuthRejected
Authentication or authorization was rejected.
A required upstream dependency was unreachable or unavailable.
Execution
The tool ran but failed for an unclassified execution reason.
Internal
An internal server defect not attributable to the caller.
Implementations§
Source§impl ServiceErrorKind
impl ServiceErrorKind
Trait Implementations§
Source§impl Clone for ServiceErrorKind
impl Clone for ServiceErrorKind
Source§fn clone(&self) -> ServiceErrorKind
fn clone(&self) -> ServiceErrorKind
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 ServiceErrorKind
impl Debug for ServiceErrorKind
Source§impl PartialEq for ServiceErrorKind
impl PartialEq for ServiceErrorKind
Source§fn eq(&self, other: &ServiceErrorKind) -> bool
fn eq(&self, other: &ServiceErrorKind) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ServiceErrorKind
impl Serialize for ServiceErrorKind
impl Copy for ServiceErrorKind
impl Eq for ServiceErrorKind
impl StructuralPartialEq for ServiceErrorKind
Auto Trait Implementations§
impl Freeze for ServiceErrorKind
impl RefUnwindSafe for ServiceErrorKind
impl Send for ServiceErrorKind
impl Sync for ServiceErrorKind
impl Unpin for ServiceErrorKind
impl UnsafeUnpin for ServiceErrorKind
impl UnwindSafe for ServiceErrorKind
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.