#[non_exhaustive]pub enum ModelErrorPhase {
Preparation,
Dispatch,
Response,
Stream,
}Expand description
Stage at which one model attempt failed.
The stage is observability evidence, not retry advice and not proof of
provider billing or side-effect outcome. Recovery uses the enclosed
crate::RetryAdvice and the runtime’s independent budget, attempt,
deadline, idempotency, and policy checks.
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.
Preparation
Local preparation failed before starting a provider exchange.
Dispatch
A provider exchange was attempted without accepting a complete response or stream.
Response
A complete-response exchange failed during provider response handling.
Stream
An accepted provider stream failed, possibly after semantic events were emitted.
Trait Implementations§
Source§impl Clone for ModelErrorPhase
impl Clone for ModelErrorPhase
impl Copy for ModelErrorPhase
Source§impl Debug for ModelErrorPhase
impl Debug for ModelErrorPhase
Source§impl<'de> Deserialize<'de> for ModelErrorPhase
impl<'de> Deserialize<'de> for ModelErrorPhase
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 ModelErrorPhase
Source§impl Hash for ModelErrorPhase
impl Hash for ModelErrorPhase
Source§impl JsonSchema for ModelErrorPhase
impl JsonSchema for ModelErrorPhase
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl Ord for ModelErrorPhase
impl Ord for ModelErrorPhase
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for ModelErrorPhase
impl PartialEq for ModelErrorPhase
Source§impl PartialOrd for ModelErrorPhase
impl PartialOrd for ModelErrorPhase
Source§impl Serialize for ModelErrorPhase
impl Serialize for ModelErrorPhase
impl StructuralPartialEq for ModelErrorPhase
Auto Trait Implementations§
impl Forget for ModelErrorPhase
impl Freeze for ModelErrorPhase
impl Move for ModelErrorPhase
impl RefUnwindSafe for ModelErrorPhase
impl Send for ModelErrorPhase
impl Sync for ModelErrorPhase
impl Unpin for ModelErrorPhase
impl UnsafeUnpin for ModelErrorPhase
impl UnwindSafe for ModelErrorPhase
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