pub struct InvocationClockObservation { /* private fields */ }Expand description
Trusted wall/monotonic clock pair captured at one process observation.
Implementations§
Source§impl InvocationClockObservation
impl InvocationClockObservation
Sourcepub const fn new(observed_at: Timestamp, observed_instant: Instant) -> Self
pub const fn new(observed_at: Timestamp, observed_instant: Instant) -> Self
Constructs one trusted paired observation.
Sourcepub const fn observed_at(self) -> Timestamp
pub const fn observed_at(self) -> Timestamp
Returns the wall-clock component used for durable budget decisions.
Sourcepub const fn observed_instant(self) -> Instant
pub const fn observed_instant(self) -> Instant
Returns the paired monotonic observation used for active deadlines.
Trait Implementations§
Source§impl Clone for InvocationClockObservation
impl Clone for InvocationClockObservation
impl Copy for InvocationClockObservation
Auto Trait Implementations§
impl Forget for InvocationClockObservation
impl Freeze for InvocationClockObservation
impl Move for InvocationClockObservation
impl RefUnwindSafe for InvocationClockObservation
impl Send for InvocationClockObservation
impl Sync for InvocationClockObservation
impl Unpin for InvocationClockObservation
impl UnsafeUnpin for InvocationClockObservation
impl UnwindSafe for InvocationClockObservation
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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