pub struct DefaultAsyncLockableMediator { /* private fields */ }Trait Implementations§
Source§impl AsyncLockableMediator for DefaultAsyncLockableMediator
impl AsyncLockableMediator for DefaultAsyncLockableMediator
Source§fn wait_lockable(&mut self, cx: &mut Context<'_>) -> usize
fn wait_lockable(&mut self, cx: &mut Context<'_>) -> usize
Available on non-crate feature
trace_lock only.Block the current task and wait for lockable event. Read more
Source§fn cancel(&mut self, key: usize) -> bool
fn cancel(&mut self, key: usize) -> bool
Cancel the waker by key value.
Returns true if remove waker successfully.
Source§fn notify_one(&mut self)
fn notify_one(&mut self)
Available on non-crate feature
trace_lock only.Source§fn notify_all(&mut self)
fn notify_all(&mut self)
notify all listeners that they can try to lock this mutex again.
Auto Trait Implementations§
impl Freeze for DefaultAsyncLockableMediator
impl RefUnwindSafe for DefaultAsyncLockableMediator
impl Send for DefaultAsyncLockableMediator
impl Sync for DefaultAsyncLockableMediator
impl Unpin for DefaultAsyncLockableMediator
impl UnwindSafe for DefaultAsyncLockableMediator
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
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