pub struct NoopLockWaitObserver;Expand description
Observer implementation that performs no work.
Trait Implementations§
Source§impl Debug for NoopLockWaitObserver
impl Debug for NoopLockWaitObserver
Source§impl Default for NoopLockWaitObserver
impl Default for NoopLockWaitObserver
Source§fn default() -> NoopLockWaitObserver
fn default() -> NoopLockWaitObserver
Returns the “default value” for a type. Read more
Source§impl LockWaitObserver for NoopLockWaitObserver
impl LockWaitObserver for NoopLockWaitObserver
fn on_wait_start(&self, _scope: &LockScope, _timeout: LockTimeoutValue)
fn on_retry( &self, _scope: &LockScope, _attempt: usize, _elapsed: Duration, _remaining: Option<Duration>, )
fn on_acquired(&self, _scope: &LockScope, _waited: Duration)
fn on_timeout(&self, _scope: &LockScope, _waited: Duration)
fn on_cancelled(&self, _scope: &LockScope, _waited: Duration)
Auto Trait Implementations§
impl Freeze for NoopLockWaitObserver
impl RefUnwindSafe for NoopLockWaitObserver
impl Send for NoopLockWaitObserver
impl Sync for NoopLockWaitObserver
impl Unpin for NoopLockWaitObserver
impl UnsafeUnpin for NoopLockWaitObserver
impl UnwindSafe for NoopLockWaitObserver
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
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more