Struct byztime::Era[][src]

pub struct Era(pub [u8; 16]);

A random identifier representing a clock era

Two timestamps obtained by calling Timestamp::local_time are comparable iff they were obtained during the same era. Generally, the era changes across reboots and is otherwise constant.

Implementations

impl Era[src]

pub fn get() -> Result<Era>[src]

Returns the current clock era.

Trait Implementations

impl Clone for Era[src]

impl Copy for Era[src]

impl Debug for Era[src]

impl Eq for Era[src]

impl Hash for Era[src]

impl Ord for Era[src]

impl PartialEq<Era> for Era[src]

impl PartialOrd<Era> for Era[src]

impl StructuralEq for Era[src]

impl StructuralPartialEq for Era[src]

Auto Trait Implementations

impl RefUnwindSafe for Era

impl Send for Era

impl Sync for Era

impl Unpin for Era

impl UnwindSafe for Era

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.