#[repr(C)]pub struct EpochSchedule {
pub slots_per_epoch: u64,
pub leader_schedule_slot_offset: u64,
pub warmup: bool,
pub first_normal_epoch: u64,
pub first_normal_slot: u64,
}Expand description
Epoch schedule sysvar data.
Nobody wraps this at the native level. Useful for programs that need to reason about epoch boundaries (staking, vesting, time locks).
Fields§
§slots_per_epoch: u64§leader_schedule_slot_offset: u64§warmup: bool§first_normal_epoch: u64§first_normal_slot: u64Implementations§
Trait Implementations§
Source§impl Clone for EpochSchedule
impl Clone for EpochSchedule
Source§fn clone(&self) -> EpochSchedule
fn clone(&self) -> EpochSchedule
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EpochSchedule
impl Debug for EpochSchedule
Source§impl Default for EpochSchedule
impl Default for EpochSchedule
Source§fn default() -> EpochSchedule
fn default() -> EpochSchedule
Returns the “default value” for a type. Read more
impl Copy for EpochSchedule
Auto Trait Implementations§
impl Freeze for EpochSchedule
impl RefUnwindSafe for EpochSchedule
impl Send for EpochSchedule
impl Sync for EpochSchedule
impl Unpin for EpochSchedule
impl UnsafeUnpin for EpochSchedule
impl UnwindSafe for EpochSchedule
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