pub struct AtomicIntervalLight { /* private fields */ }Expand description
A relaxed version of AtomicInterval: for more information check that.
All Ordering are implicit: Ordering::Relaxed.
On some architecture this version is allowed to spuriously fail.
It means AtomicIntervalLight::is_ticked might return false even if
the period amount of time has passed.
It can result in more efficient code on some platforms.
Implementations§
Source§impl AtomicIntervalLight
impl AtomicIntervalLight
Sourcepub fn new(period: Duration) -> Self
pub fn new(period: Duration) -> Self
Creates a new AtomicIntervalLight with a fixed period interval.
Sourcepub fn set_period(&mut self, period: Duration)
pub fn set_period(&mut self, period: Duration)
Changes the period of this interval.
Auto Trait Implementations§
impl !Freeze for AtomicIntervalLight
impl RefUnwindSafe for AtomicIntervalLight
impl Send for AtomicIntervalLight
impl Sync for AtomicIntervalLight
impl Unpin for AtomicIntervalLight
impl UnwindSafe for AtomicIntervalLight
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