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
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)
Randomly notify one listener that it can try to lock this mutex again.
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