pub struct RetryScope { /* private fields */ }Expand description
RAII scope that attributes every backoff sleep recorded during its lifetime
to name (a publisher or stage label). Restores the previous scope on drop,
so nested/sequential scopes compose. Install one around each publisher’s
run and around a stage’s whole retrying section.
Implementations§
Trait Implementations§
Source§impl Drop for RetryScope
impl Drop for RetryScope
Auto Trait Implementations§
impl Freeze for RetryScope
impl RefUnwindSafe for RetryScope
impl Send for RetryScope
impl Sync for RetryScope
impl Unpin for RetryScope
impl UnsafeUnpin for RetryScope
impl UnwindSafe for RetryScope
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