pub struct AbsoluteFloat { /* private fields */ }
Expand description
Time represented as wall clock time given as a positive real number representing seconds and sub-seconds since the start of the Unix Epoch.
Trait Implementations§
Source§impl Clone for AbsoluteFloat
impl Clone for AbsoluteFloat
Source§fn clone(&self) -> AbsoluteFloat
fn clone(&self) -> AbsoluteFloat
Returns a copy 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 AbsoluteFloat
impl Debug for AbsoluteFloat
Source§impl Default for AbsoluteFloat
impl Default for AbsoluteFloat
Source§fn default() -> AbsoluteFloat
fn default() -> AbsoluteFloat
Returns the “default value” for a type. Read more
Source§impl TimeConversion<()> for AbsoluteFloat
impl TimeConversion<()> for AbsoluteFloat
Source§fn into(_from: <Self as TimeRepresentation>::InnerTime)
fn into(_from: <Self as TimeRepresentation>::InnerTime)
Converts an InnerTime to
T
Source§impl TimeConversion<String> for AbsoluteFloat
impl TimeConversion<String> for AbsoluteFloat
Source§impl TimeConversion<f64> for AbsoluteFloat
impl TimeConversion<f64> for AbsoluteFloat
Source§impl TimeMode for AbsoluteFloat
impl TimeMode for AbsoluteFloat
Source§fn requires_timestamp() -> bool
fn requires_timestamp() -> bool
Returns whether the time TimeRepresentation require an explicit timestamp
Source§impl TimeRepresentation for AbsoluteFloat
impl TimeRepresentation for AbsoluteFloat
Source§fn convert_from(&mut self, ts: Duration) -> Time
fn convert_from(&mut self, ts: Duration) -> Time
Convert from the internal time representation to the monitor time.
Source§fn convert_into(&self, ts: Time) -> Self::InnerTime
fn convert_into(&self, ts: Time) -> Self::InnerTime
Convert from monitor time to the internal representation.
Source§fn parse(s: &str) -> Result<Duration, String>
fn parse(s: &str) -> Result<Duration, String>
Parse the internal representation from a string and convert it into monitor time.
Source§fn init_start_time(
&mut self,
start: Option<SystemTime>,
) -> Arc<RwLock<Option<SystemTime>>>
fn init_start_time( &mut self, start: Option<SystemTime>, ) -> Arc<RwLock<Option<SystemTime>>>
Initializes the start time of the time representation.
Source§fn set_start_time(&mut self, start_time: Arc<RwLock<Option<SystemTime>>>)
fn set_start_time(&mut self, start_time: Arc<RwLock<Option<SystemTime>>>)
Set an already initialized start time.
Source§fn default_start_time() -> Option<SystemTime>
fn default_start_time() -> Option<SystemTime>
Returns a default start time if applicable for the time representation.
impl OutputTimeRepresentation for AbsoluteFloat
Auto Trait Implementations§
impl Freeze for AbsoluteFloat
impl RefUnwindSafe for AbsoluteFloat
impl Send for AbsoluteFloat
impl Sync for AbsoluteFloat
impl Unpin for AbsoluteFloat
impl UnwindSafe for AbsoluteFloat
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§impl<O> TimeConversion<<O as TimeRepresentation>::InnerTime> for Owhere
O: OutputTimeRepresentation,
impl<O> TimeConversion<<O as TimeRepresentation>::InnerTime> for Owhere
O: OutputTimeRepresentation,
Source§fn into(
from: <O as TimeRepresentation>::InnerTime,
) -> <O as TimeRepresentation>::InnerTime
fn into( from: <O as TimeRepresentation>::InnerTime, ) -> <O as TimeRepresentation>::InnerTime
Converts an InnerTime to
T