pub struct EventMap<E>{ /* private fields */ }Expand description
The mediator of event notify for futures-aware enviroment.
Implementations§
Source§impl<E> EventMap<E>
impl<E> EventMap<E>
Sourcepub fn wait_cancel<Q>(&self, event: Q)where
Q: Borrow<E>,
pub fn wait_cancel<Q>(&self, event: Q)where
Q: Borrow<E>,
Only remove event waker, without wakeup it.
Sourcepub fn notify_one<Q>(&self, event: Q, reason: Reason) -> boolwhere
Q: Borrow<E>,
pub fn notify_one<Q>(&self, event: Q, reason: Reason) -> boolwhere
Q: Borrow<E>,
Notify one event E on.
Sourcepub fn notify_all<L: AsRef<[E]>>(&self, events: L, reason: Reason)
pub fn notify_all<L: AsRef<[E]>>(&self, events: L, reason: Reason)
Notify all event on in the providing events list
Sourcepub fn notify_any(&self, reason: Reason)
pub fn notify_any(&self, reason: Reason)
Notify all event on in the providing events list
pub fn wait<'a, Q, G>(&'a self, event: Q, guard: G) -> Wait<'a, E, G> ⓘwhere
G: AsyncGuardMut<'a> + 'a,
Q: Borrow<E>,
Trait Implementations§
Auto Trait Implementations§
impl<E> Freeze for EventMap<E>
impl<E> !RefUnwindSafe for EventMap<E>
impl<E> Send for EventMap<E>
impl<E> Sync for EventMap<E>where
E: Sync,
impl<E> Unpin for EventMap<E>
impl<E> UnwindSafe for EventMap<E>where
E: UnwindSafe,
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