#[non_exhaustive]pub enum ErrorComponent {
Show 14 variants
Agent,
Model,
Tool,
Session,
Artifact,
Memory,
Graph,
Realtime,
Code,
Server,
Auth,
Guardrail,
Eval,
Deploy,
}Expand description
The subsystem that produced the error — the origin, not the boundary it surfaces through.
Choose the variant matching where the failure actually happened, not which trait boundary returned it. For example:
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.
Trait Implementations§
Source§impl Clone for ErrorComponent
impl Clone for ErrorComponent
Source§fn clone(&self) -> ErrorComponent
fn clone(&self) -> ErrorComponent
Returns a duplicate of the value. Read more
1.0.0 · 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 ErrorComponent
impl Debug for ErrorComponent
Source§impl<'de> Deserialize<'de> for ErrorComponent
impl<'de> Deserialize<'de> for ErrorComponent
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 ErrorComponent
impl Display for ErrorComponent
Source§impl Hash for ErrorComponent
impl Hash for ErrorComponent
Source§impl PartialEq for ErrorComponent
impl PartialEq for ErrorComponent
Source§impl Serialize for ErrorComponent
impl Serialize for ErrorComponent
impl Copy for ErrorComponent
impl Eq for ErrorComponent
impl StructuralPartialEq for ErrorComponent
Auto Trait Implementations§
impl Freeze for ErrorComponent
impl RefUnwindSafe for ErrorComponent
impl Send for ErrorComponent
impl Sync for ErrorComponent
impl Unpin for ErrorComponent
impl UnsafeUnpin for ErrorComponent
impl UnwindSafe for ErrorComponent
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