pub enum CondvarClock {
Realtime,
Monotonic,
}Expand description
The clock a condvar resolves the deadlines of its timed waits against.
See pthread_condattr_setclock
for more information.
Variants§
Realtime
CLOCK_REALTIME. This is what POSIX specifies as the default, and it means
that setting the system time moves every outstanding deadline with it.
Monotonic
Available on non-Apple only.
CLOCK_MONOTONIC. Prefer this one unless a
deadline genuinely refers to a wall clock time.
Not available on Apple platforms, which do not implement pthread_condattr_setclock.
Trait Implementations§
Source§impl Clone for CondvarClock
impl Clone for CondvarClock
Source§fn clone(&self) -> CondvarClock
fn clone(&self) -> CondvarClock
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CondvarClock
Source§impl Debug for CondvarClock
impl Debug for CondvarClock
Source§impl Default for CondvarClock
impl Default for CondvarClock
Source§fn default() -> CondvarClock
fn default() -> CondvarClock
Returns the “default value” for a type. Read more
impl Eq for CondvarClock
Source§impl From<CondvarClock> for clockid_t
impl From<CondvarClock> for clockid_t
Source§fn from(value: CondvarClock) -> Self
fn from(value: CondvarClock) -> Self
Converts to this type from the input type.
Source§impl PartialEq for CondvarClock
impl PartialEq for CondvarClock
impl StructuralPartialEq for CondvarClock
Auto Trait Implementations§
impl Freeze for CondvarClock
impl RefUnwindSafe for CondvarClock
impl Send for CondvarClock
impl Sync for CondvarClock
impl Unpin for CondvarClock
impl UnsafeUnpin for CondvarClock
impl UnwindSafe for CondvarClock
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