#[non_exhaustive]pub enum ModelErrorKind {
InvalidRequest,
UnsupportedFeature,
Transport,
Protocol,
StreamState,
MalformedToolArguments,
Provider,
Cancelled,
DeadlineExceeded,
}Expand description
A normalized model-layer error category.
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.
InvalidRequest
Request data failed local validation.
UnsupportedFeature
The selected model or provider does not support a required feature.
Transport
A provider transport failed.
Protocol
A provider response violated its protocol.
StreamState
Stream events violated the canonical lifecycle.
MalformedToolArguments
Accumulated tool arguments were not valid JSON.
Provider
A provider rejected or failed a request.
Cancelled
The model call was cancelled.
DeadlineExceeded
The model call exceeded its deadline.
Trait Implementations§
Source§impl Clone for ModelErrorKind
impl Clone for ModelErrorKind
Source§fn clone(&self) -> ModelErrorKind
fn clone(&self) -> ModelErrorKind
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 ModelErrorKind
impl Debug for ModelErrorKind
Source§impl<'de> Deserialize<'de> for ModelErrorKind
impl<'de> Deserialize<'de> for ModelErrorKind
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
impl Eq for ModelErrorKind
Source§impl PartialEq for ModelErrorKind
impl PartialEq for ModelErrorKind
Source§impl Serialize for ModelErrorKind
impl Serialize for ModelErrorKind
impl StructuralPartialEq for ModelErrorKind
Auto Trait Implementations§
impl Freeze for ModelErrorKind
impl RefUnwindSafe for ModelErrorKind
impl Send for ModelErrorKind
impl Sync for ModelErrorKind
impl Unpin for ModelErrorKind
impl UnsafeUnpin for ModelErrorKind
impl UnwindSafe for ModelErrorKind
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