pub struct ProviderTimeObservation { /* private fields */ }Expand description
Provider-owned wall-clock telemetry carried without driving local budgets.
Implementations§
Source§impl ProviderTimeObservation
impl ProviderTimeObservation
Sourcepub const fn new(
observed_at: Option<WallClockTimestamp>,
expires_at: Option<WallClockTimestamp>,
) -> Result<Self, ProviderTimeError>
pub const fn new( observed_at: Option<WallClockTimestamp>, expires_at: Option<WallClockTimestamp>, ) -> Result<Self, ProviderTimeError>
Creates coherent provider timestamps.
Sourcepub const fn observed_at(self) -> Option<WallClockTimestamp>
pub const fn observed_at(self) -> Option<WallClockTimestamp>
Returns the provider-reported observation timestamp.
Sourcepub const fn expires_at(self) -> Option<WallClockTimestamp>
pub const fn expires_at(self) -> Option<WallClockTimestamp>
Returns the provider-reported expiry timestamp.
Trait Implementations§
Source§impl Clone for ProviderTimeObservation
impl Clone for ProviderTimeObservation
Source§fn clone(&self) -> ProviderTimeObservation
fn clone(&self) -> ProviderTimeObservation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ProviderTimeObservation
Source§impl Debug for ProviderTimeObservation
impl Debug for ProviderTimeObservation
Source§impl Default for ProviderTimeObservation
impl Default for ProviderTimeObservation
Source§fn default() -> ProviderTimeObservation
fn default() -> ProviderTimeObservation
Returns the “default value” for a type. Read more
impl Eq for ProviderTimeObservation
Source§impl PartialEq for ProviderTimeObservation
impl PartialEq for ProviderTimeObservation
impl StructuralPartialEq for ProviderTimeObservation
Auto Trait Implementations§
impl Freeze for ProviderTimeObservation
impl RefUnwindSafe for ProviderTimeObservation
impl Send for ProviderTimeObservation
impl Sync for ProviderTimeObservation
impl Unpin for ProviderTimeObservation
impl UnsafeUnpin for ProviderTimeObservation
impl UnwindSafe for ProviderTimeObservation
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