#[non_exhaustive]#[repr(u32)]pub enum TimestampType {
GetTimeOfDay = 0,
Monotonic = 1,
MonotonicRaw = 2,
}Available on crate feature
alsa only.Expand description
Defines the type of timestamp that is available.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
GetTimeOfDay = 0
gettimeofday equivalent
Monotonic = 1
posix_clock_monotonic equivalent
MonotonicRaw = 2
monotonic_raw (no NTP)
Implementations§
Source§impl TimestampType
impl TimestampType
Sourcepub fn from_value(value: u32) -> Option<Self>
pub fn from_value(value: u32) -> Option<Self>
Parse the given enum from a value.
Trait Implementations§
Source§impl Clone for TimestampType
impl Clone for TimestampType
Source§fn clone(&self) -> TimestampType
fn clone(&self) -> TimestampType
Returns a duplicate 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 TimestampType
impl Debug for TimestampType
Source§impl Display for TimestampType
impl Display for TimestampType
Source§impl Hash for TimestampType
impl Hash for TimestampType
Source§impl Ord for TimestampType
impl Ord for TimestampType
Source§fn cmp(&self, other: &TimestampType) -> Ordering
fn cmp(&self, other: &TimestampType) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for TimestampType
impl PartialEq for TimestampType
Source§impl PartialOrd for TimestampType
impl PartialOrd for TimestampType
impl Copy for TimestampType
impl Eq for TimestampType
impl StructuralPartialEq for TimestampType
Auto Trait Implementations§
impl Freeze for TimestampType
impl RefUnwindSafe for TimestampType
impl Send for TimestampType
impl Sync for TimestampType
impl Unpin for TimestampType
impl UnwindSafe for TimestampType
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