Struct livesplit_core::AtomicDateTime
[−]
[src]
pub struct AtomicDateTime { pub time: DateTime<UTC>, pub synced_with_atomic_clock: bool, }
Fields
time: DateTime<UTC>
synced_with_atomic_clock: bool
Methods
impl AtomicDateTime
[src]
fn new(time: DateTime<UTC>, synced_with_atomic_clock: bool) -> Self
Constructs a new AtomicDateTime
.
impl AtomicDateTime
[src]
fn now() -> Self
fn option_op<F, R>(
a: Option<AtomicDateTime>,
b: Option<AtomicDateTime>,
f: F
) -> Option<R> where
F: FnOnce(AtomicDateTime, AtomicDateTime) -> R,
a: Option<AtomicDateTime>,
b: Option<AtomicDateTime>,
f: F
) -> Option<R> where
F: FnOnce(AtomicDateTime, AtomicDateTime) -> R,
Trait Implementations
impl Copy for AtomicDateTime
[src]
impl Clone for AtomicDateTime
[src]
fn clone(&self) -> AtomicDateTime
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Debug for AtomicDateTime
[src]
impl Sub for AtomicDateTime
[src]
type Output = TimeSpan
The resulting type after applying the -
operator
fn sub(self, rhs: AtomicDateTime) -> TimeSpan
The method for the -
operator