#[repr(C)]pub enum ClockSource {
BestMonotonic,
BestRealTime,
ID(ClockID),
}
Expand description
Possible clock sources.
Variants§
Trait Implementations§
source§impl Clone for ClockSource
impl Clone for ClockSource
source§fn clone(&self) -> ClockSource
fn clone(&self) -> ClockSource
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ClockSource
impl Debug for ClockSource
source§impl From<ClockSource> for u64
impl From<ClockSource> for u64
source§fn from(source: ClockSource) -> Self
fn from(source: ClockSource) -> Self
Converts to this type from the input type.
source§impl From<u64> for ClockSource
impl From<u64> for ClockSource
impl Copy for ClockSource
Auto Trait Implementations§
impl Freeze for ClockSource
impl ObjSafe for ClockSource
impl RefUnwindSafe for ClockSource
impl Send for ClockSource
impl Sync for ClockSource
impl Unpin for ClockSource
impl UnwindSafe for ClockSource
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)