pub struct RetryObserverHandle(/* private fields */);Expand description
Cloneable observer ownership, with isolation of user callback failures.
Implementations§
Source§impl RetryObserverHandle
impl RetryObserverHandle
Sourcepub fn new(observer: impl RetryObserver) -> Self
pub fn new(observer: impl RetryObserver) -> Self
Retain a thread-safe observer.
Sourcepub fn notify(&self, event: RetryEvent)
pub fn notify(&self, event: RetryEvent)
Deliver an observation without propagating an observer unwind.
Trait Implementations§
Source§impl Clone for RetryObserverHandle
impl Clone for RetryObserverHandle
Source§impl Debug for RetryObserverHandle
impl Debug for RetryObserverHandle
impl Eq for RetryObserverHandle
Auto Trait Implementations§
impl !RefUnwindSafe for RetryObserverHandle
impl !UnwindSafe for RetryObserverHandle
impl Freeze for RetryObserverHandle
impl Send for RetryObserverHandle
impl Sync for RetryObserverHandle
impl Unpin for RetryObserverHandle
impl UnsafeUnpin for RetryObserverHandle
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