pub struct RetryNotifier(/* private fields */);Expand description
Cloneable, optional retry sink. Default is a no-op.
Implementations§
Source§impl RetryNotifier
impl RetryNotifier
pub fn new(f: impl Fn(RetryNotice) + Send + Sync + 'static) -> Self
pub fn notify(&self, notice: RetryNotice)
Trait Implementations§
Source§impl Clone for RetryNotifier
impl Clone for RetryNotifier
Source§impl Debug for RetryNotifier
impl Debug for RetryNotifier
Source§impl Default for RetryNotifier
impl Default for RetryNotifier
impl Eq for RetryNotifier
Auto Trait Implementations§
impl !RefUnwindSafe for RetryNotifier
impl !UnwindSafe for RetryNotifier
impl Freeze for RetryNotifier
impl Send for RetryNotifier
impl Sync for RetryNotifier
impl Unpin for RetryNotifier
impl UnsafeUnpin for RetryNotifier
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