pub struct Since(_);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§
source§impl PartialEq<Since> for Since
impl PartialEq<Since> for Since
impl Copy for Since
impl Eq for Since
impl StructuralEq for Since
impl StructuralPartialEq for Since
Auto Trait Implementations§
impl RefUnwindSafe for Since
impl Send for Since
impl Sync for Since
impl Unpin for Since
impl UnwindSafe for Since
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.