#[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
impl Copy for EpochSchedule
Source§impl Debug for EpochSchedule
impl Debug 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