pub struct OffsetNanos { /* private fields */ }Expand description
Time represented as the unsigned number in nanoseconds as the offset to the preceding event.
Trait Implementations§
Source§impl Clone for OffsetNanos
impl Clone for OffsetNanos
Source§fn clone(&self) -> OffsetNanos
fn clone(&self) -> OffsetNanos
Returns a duplicate 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 OffsetNanos
impl Debug for OffsetNanos
Source§impl Default for OffsetNanos
impl Default for OffsetNanos
Source§fn default() -> OffsetNanos
fn default() -> OffsetNanos
Returns the “default value” for a type. Read more
Source§impl TimeMode for OffsetNanos
impl TimeMode for OffsetNanos
Source§fn requires_timestamp() -> bool
fn requires_timestamp() -> bool
Returns whether the time TimeRepresentation require an explicit timestamp
Source§impl TimeRepresentation for OffsetNanos
impl TimeRepresentation for OffsetNanos
Source§fn convert_from(&mut self, raw: Self::InnerTime) -> Time
fn convert_from(&mut self, raw: Self::InnerTime) -> 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 to_string(&self, ts: Self::InnerTime) -> String
fn to_string(&self, ts: Self::InnerTime) -> String
Convert the internal representation into a string.
Source§fn parse(s: &str) -> Result<u64, String>
fn parse(s: &str) -> Result<u64, String>
Parse the internal representation from a string and convert it into monitor 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.
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.
impl Copy for OffsetNanos
Auto Trait Implementations§
impl Freeze for OffsetNanos
impl RefUnwindSafe for OffsetNanos
impl Send for OffsetNanos
impl Sync for OffsetNanos
impl Unpin for OffsetNanos
impl UnwindSafe for OffsetNanos
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 more