pub struct Since(/* private fields */);Implementations§
Source§impl Since
impl Since
pub fn new(ty: SinceType, value: u64, is_relative: bool) -> Since
pub fn new_absolute_epoch(epoch_number: u64) -> Since
pub fn from_raw_value(value: u64) -> Since
pub fn value(self) -> u64
pub fn is_absolute(self) -> bool
pub fn is_relative(self) -> bool
pub fn flags_is_valid(self) -> bool
pub fn extract_metric(self) -> Option<(SinceType, u64)>
Trait Implementations§
impl Copy for Since
impl Eq for Since
impl StructuralPartialEq for Since
Auto Trait Implementations§
impl Freeze for Since
impl RefUnwindSafe for Since
impl Send for Since
impl Sync for Since
impl Unpin for Since
impl UnsafeUnpin for Since
impl UnwindSafe for Since
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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