Struct clockwork_utils::ClockData 
source · [−]pub struct ClockData {
    pub slot: Slot,
    pub epoch_start_timestamp: UnixTimestamp,
    pub epoch: Epoch,
    pub leader_schedule_epoch: Epoch,
    pub unix_timestamp: UnixTimestamp,
}Expand description
The clock object, representing a specific moment in time recorded by a Solana cluster.
Fields
slot: SlotThe current slot.
epoch_start_timestamp: UnixTimestampThe timestamp of the first slot in this Solana epoch.
epoch: EpochThe bank epoch.
leader_schedule_epoch: EpochThe future epoch for which the leader schedule has most recently been calculated.
unix_timestamp: UnixTimestampOriginally 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
sourceimpl BorshDeserialize for ClockDatawhere
    Slot: BorshDeserialize,
    UnixTimestamp: BorshDeserialize,
    Epoch: BorshDeserialize,
    Epoch: BorshDeserialize,
    UnixTimestamp: BorshDeserialize,
 
impl BorshDeserialize for ClockDatawhere
    Slot: BorshDeserialize,
    UnixTimestamp: BorshDeserialize,
    Epoch: BorshDeserialize,
    Epoch: BorshDeserialize,
    UnixTimestamp: BorshDeserialize,
sourcefn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
 
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes. Read more
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
Deserialize this instance from a slice of bytes.
sourceimpl BorshSchema for ClockDatawhere
    Slot: BorshSchema,
    UnixTimestamp: BorshSchema,
    Epoch: BorshSchema,
    Epoch: BorshSchema,
    UnixTimestamp: BorshSchema,
 
impl BorshSchema for ClockDatawhere
    Slot: BorshSchema,
    UnixTimestamp: BorshSchema,
    Epoch: BorshSchema,
    Epoch: BorshSchema,
    UnixTimestamp: BorshSchema,
sourcefn declaration() -> Declaration
 
fn declaration() -> Declaration
Get the name of the type without brackets.
sourcefn 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.
fn schema_container() -> BorshSchemaContainer
sourceimpl BorshSerialize for ClockDatawhere
    Slot: BorshSerialize,
    UnixTimestamp: BorshSerialize,
    Epoch: BorshSerialize,
    Epoch: BorshSerialize,
    UnixTimestamp: BorshSerialize,
 
impl BorshSerialize for ClockDatawhere
    Slot: BorshSerialize,
    UnixTimestamp: BorshSerialize,
    Epoch: BorshSerialize,
    Epoch: BorshSerialize,
    UnixTimestamp: BorshSerialize,
impl StructuralPartialEq for ClockData
Auto Trait Implementations
impl RefUnwindSafe for ClockData
impl Send for ClockData
impl Sync for ClockData
impl Unpin for ClockData
impl UnwindSafe for ClockData
Blanket Implementations
impl<T> AbiExample for T
impl<T> AbiExample for T
default fn example() -> T
sourceimpl<T> BorrowMut<T> for Twhere
    T: ?Sized,
 
impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more