pub struct GenerationFailure {
pub cause: GenerateError,
pub retryable: bool,
pub retry_after: Option<Duration>,
}Fields§
§cause: GenerateError§retryable: boolA transient cause; the caller must also ensure no response parts were emitted.
retry_after: Option<Duration>Implementations§
Source§impl GenerationFailure
impl GenerationFailure
pub fn terminal(cause: GenerateError) -> Self
pub fn transient(cause: GenerateError, retry_after: Option<Duration>) -> Self
Trait Implementations§
Source§impl Clone for GenerationFailure
impl Clone for GenerationFailure
Source§fn clone(&self) -> GenerationFailure
fn clone(&self) -> GenerationFailure
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 moreAuto Trait Implementations§
impl Freeze for GenerationFailure
impl RefUnwindSafe for GenerationFailure
impl Send for GenerationFailure
impl Sync for GenerationFailure
impl Unpin for GenerationFailure
impl UnsafeUnpin for GenerationFailure
impl UnwindSafe for GenerationFailure
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