Skip to main content

InvocationClock

Trait InvocationClock 

Source
pub trait InvocationClock:
    Send
    + Sync
    + 'static {
    // Required method
    fn observe(
        &self,
    ) -> Result<InvocationClockObservation, InvocationClockError>;
}
Expand description

Trusted clock source for attempt contexts.

Required Methods§

Source

fn observe(&self) -> Result<InvocationClockObservation, InvocationClockError>

Captures paired wall and monotonic observations.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§