Skip to main content

CanonChainTracker

Trait CanonChainTracker 

Source
pub trait CanonChainTracker: Send + Sync {
    // Required method
    fn last_received_update_timestamp(&self) -> Option<Instant>;
}
Available on crate feature storage-api only.
Expand description

A type that knows when the last fork choice update was received.

Required Methods§

Source

fn last_received_update_timestamp(&self) -> Option<Instant>

Available on crate feature std only.

Returns the last time a fork choice update was received from the CL.

Returns None if none was received yet, or if the type does not track them.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§