pub struct ErrorContract { /* private fields */ }Expand description
Expected classification of a failed provider invocation.
Implementations§
Source§impl ErrorContract
impl ErrorContract
Sourcepub fn new(
provider: impl Into<String>,
kind: ModelErrorKind,
retry_safety: RetrySafety,
) -> Self
pub fn new( provider: impl Into<String>, kind: ModelErrorKind, retry_safety: RetrySafety, ) -> Self
Creates an exact normalized error contract.
Trait Implementations§
Source§impl Clone for ErrorContract
impl Clone for ErrorContract
Source§fn clone(&self) -> ErrorContract
fn clone(&self) -> ErrorContract
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 ErrorContract
impl Debug for ErrorContract
impl Eq for ErrorContract
Source§impl PartialEq for ErrorContract
impl PartialEq for ErrorContract
impl StructuralPartialEq for ErrorContract
Auto Trait Implementations§
impl Freeze for ErrorContract
impl RefUnwindSafe for ErrorContract
impl Send for ErrorContract
impl Sync for ErrorContract
impl Unpin for ErrorContract
impl UnsafeUnpin for ErrorContract
impl UnwindSafe for ErrorContract
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