Struct clockwork_utils::ClockData
source · pub struct ClockData {
pub slot: u64,
pub epoch_start_timestamp: i64,
pub epoch: u64,
pub leader_schedule_epoch: u64,
pub unix_timestamp: i64,
}
Expand description
The clock object, representing a specific moment in time recorded by a Solana cluster.
Fields§
§slot: u64
The current slot.
epoch_start_timestamp: i64
The timestamp of the first slot in this Solana epoch.
epoch: u64
The bank epoch.
leader_schedule_epoch: u64
The future epoch for which the leader schedule has most recently been calculated.
unix_timestamp: i64
Originally computed from genesis creation time and network time in slots (drifty); corrected using validator timestamp oracle as of timestamp_correction and timestamp_bounding features.
Trait Implementations§
source§impl BorshSchema for ClockDatawhere
u64: BorshSchema,
i64: BorshSchema,
impl BorshSchema for ClockDatawhere
u64: BorshSchema,
i64: BorshSchema,
source§fn declaration() -> Declaration
fn declaration() -> Declaration
Get the name of the type without brackets.
source§fn add_definitions_recursively(
definitions: &mut HashMap<Declaration, Definition>
)
fn add_definitions_recursively(
definitions: &mut HashMap<Declaration, Definition>
)
Recursively, using DFS, add type definitions required for this type. For primitive types
this is an empty map. Type definition explains how to serialize/deserialize a type. Read more
§fn add_definition(
declaration: String,
definition: Definition,
definitions: &mut HashMap<String, Definition, RandomState>
)
fn add_definition(
declaration: String,
definition: Definition,
definitions: &mut HashMap<String, Definition, RandomState>
)
Helper method to add a single type definition to the map.