[−][src]Struct loom::sync::Notify
Implements the park / unpark pattern directly using Loom's internal primitives.
Notification establishes an acquire / release synchronization point.
Using this type is useful to mock out constructs when using loom tests.
Methods
impl Notify[src]
pub fn new() -> Notify[src]
Create a new Notify.
pub fn notify(&self)[src]
Notify the watier
pub fn wait(&self)[src]
Wait for a notification
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Notify
impl Send for Notify
impl Sync for Notify
impl Unpin for Notify
impl UnwindSafe for Notify
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,