pub struct ModelFailure {
pub attempt: u32,
pub error: String,
pub retryable: bool,
pub attempts_remaining: bool,
}Expand description
One failed model attempt as seen by Hook::request_error.
Fields§
§attempt: u321-based attempt counter.
error: StringError message when the operation failed.
retryable: boolWhether the failure is safe to retry.
attempts_remaining: boolWhether the runtime still has attempts left.
Trait Implementations§
Source§impl Clone for ModelFailure
impl Clone for ModelFailure
Source§fn clone(&self) -> ModelFailure
fn clone(&self) -> ModelFailure
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 ModelFailure
impl Debug for ModelFailure
impl Eq for ModelFailure
Source§impl PartialEq for ModelFailure
impl PartialEq for ModelFailure
impl StructuralPartialEq for ModelFailure
Auto Trait Implementations§
impl Freeze for ModelFailure
impl RefUnwindSafe for ModelFailure
impl Send for ModelFailure
impl Sync for ModelFailure
impl Unpin for ModelFailure
impl UnsafeUnpin for ModelFailure
impl UnwindSafe for ModelFailure
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.