Struct atomicmonitor::AtomMonitor [−][src]
pub struct AtomMonitor<T: Copy> { /* fields omitted */ }
Methods
impl<T: Copy> AtomMonitor<T>
[src]
impl<T: Copy> AtomMonitor<T>
pub fn new(value: T) -> Self
[src]
pub fn new(value: T) -> Self
pub fn mutate<O>(
&self,
mutator: impl FnMut(&Atomic<T>) -> O
) -> O
[src]
pub fn mutate<O>(
&self,
mutator: impl FnMut(&Atomic<T>) -> O
) -> O
pub fn get(&self) -> T
[src]
pub fn get(&self) -> T
pub fn set(&self, value: T)
[src]
pub fn set(&self, value: T)
pub fn wait_until(
&self,
condition: impl FnMut(T) -> bool
) -> T
[src]
pub fn wait_until(
&self,
condition: impl FnMut(T) -> bool
) -> T
pub fn wait_until_timeout(
&self,
condition: impl FnMut(T) -> bool,
timeout: Duration
) -> Option<T>
[src]
pub fn wait_until_timeout(
&self,
condition: impl FnMut(T) -> bool,
timeout: Duration
) -> Option<T>
pub fn notify_all(&self)
[src]
pub fn notify_all(&self)
Auto Trait Implementations
impl<T> Send for AtomMonitor<T> where
T: Send,
impl<T> Send for AtomMonitor<T> where
T: Send,
impl<T> Sync for AtomMonitor<T> where
T: Send,
impl<T> Sync for AtomMonitor<T> where
T: Send,