#[non_exhaustive]pub enum TimeResolution {
WinFileTime,
Nanos,
Micros,
Seconds,
TwoSeconds,
}Expand description
Native granularity of a timestamp — a UTC/seconds assumption silently loses NTFS’s 100 ns resolution (a tamper signal) or FAT’s 2-second quantization.
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.
WinFileTime
Windows FILETIME, 100 ns ticks.
Nanos
Micros
Seconds
TwoSeconds
FAT last-modified is quantized to 2 seconds.
Trait Implementations§
Source§impl Clone for TimeResolution
impl Clone for TimeResolution
Source§fn clone(&self) -> TimeResolution
fn clone(&self) -> TimeResolution
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 TimeResolution
Source§impl Debug for TimeResolution
impl Debug for TimeResolution
impl Eq for TimeResolution
Source§impl PartialEq for TimeResolution
impl PartialEq for TimeResolution
impl StructuralPartialEq for TimeResolution
Auto Trait Implementations§
impl Freeze for TimeResolution
impl RefUnwindSafe for TimeResolution
impl Send for TimeResolution
impl Sync for TimeResolution
impl Unpin for TimeResolution
impl UnsafeUnpin for TimeResolution
impl UnwindSafe for TimeResolution
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