pub struct Permanent;Available on crate feature
retry only.Expand description
A response extension that tells RetryPolicy not to retry a response it would otherwise retry.
RetryLayer::permanent_429 sets it on a 429 whose body says the error is permanent. A layer of your own, inside
the retries, can set it too: response.extensions_mut().insert(Permanent).
Trait Implementations§
impl Copy for Permanent
impl Eq for Permanent
impl StructuralPartialEq for Permanent
Auto Trait Implementations§
impl Forget for Permanent
impl Freeze for Permanent
impl Move for Permanent
impl RefUnwindSafe for Permanent
impl Send for Permanent
impl Sync for Permanent
impl Unpin for Permanent
impl UnsafeUnpin for Permanent
impl UnwindSafe for Permanent
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