[−][src]Struct utsl_hybrid_clocks::WallMST
Representation of our timestamp.
Implementations
impl WallMST
[src]
pub const TICKS_PER_SEC: u64
[src]
The number of ticks per seconds: 2^(-16).
pub const EPOCH_2020: u64
[src]
2020-02-20T00:00:00-00:00
pub fn duration_since_epoch(self) -> Result<Duration>
[src]
Returns the Duration
since the unix epoch.
pub fn as_systemtime(self) -> Result<SystemTime>
[src]
Returns a SystemTime
representing this timestamp.
pub fn from_timespec(t: SystemTime) -> Result<Self>
[src]
Returns a WallMST
representing the SystemTime
.
pub fn from_since_epoch(since_epoch: Duration) -> Result<Self>
[src]
Returns a WallMST
from a Duration
since the unix epoch.
Trait Implementations
impl Clone for WallMST
[src]
impl Copy for WallMST
[src]
impl Debug for WallMST
[src]
impl Display for WallMST
[src]
impl Eq for WallMST
[src]
impl Hash for WallMST
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for WallMST
[src]
fn cmp(&self, other: &WallMST) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<WallMST> for WallMST
[src]
impl PartialOrd<WallMST> for WallMST
[src]
fn partial_cmp(&self, other: &WallMST) -> Option<Ordering>
[src]
fn lt(&self, other: &WallMST) -> bool
[src]
fn le(&self, other: &WallMST) -> bool
[src]
fn gt(&self, other: &WallMST) -> bool
[src]
fn ge(&self, other: &WallMST) -> bool
[src]
impl StructuralEq for WallMST
[src]
impl StructuralPartialEq for WallMST
[src]
impl Sub<WallMST> for WallMST
[src]
Auto Trait Implementations
impl RefUnwindSafe for WallMST
impl Send for WallMST
impl Sync for WallMST
impl Unpin for WallMST
impl UnwindSafe for WallMST
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,