pub struct CalculationInfo {
pub epoch: Epoch,
pub slots_per_epoch: u64,
pub first_slot_in_epoch: Slot,
pub last_slot_in_epoch: Slot,
pub calculation_offset_start: Slot,
pub calculation_offset_stop: Slot,
pub calculation_start: Slot,
pub calculation_stop: Slot,
pub calculation_interval: u64,
}
Expand description
All the EAH calculation information for a specific epoch
Computing the EAH calculation information looks up a bunch of values. Instead of throwing those values away, they are kept in here as well. This may aid in future debugging, and the additional fields are trivial in size.
Fields§
§epoch: Epoch
The epoch this information applies to
slots_per_epoch: u64
Number of slots in this epoch
first_slot_in_epoch: Slot
First slot in this epoch
last_slot_in_epoch: Slot
Last slot in this epoch
calculation_offset_start: Slot
Offset into the epoch when the EAH calculation starts
calculation_offset_stop: Slot
Offset into the epoch when the EAH calculation stops
calculation_start: Slot
Absolute slot where the EAH calculation starts
calculation_stop: Slot
Absolute slot where the EAH calculation stops
calculation_interval: u64
Number of slots from EAH calculation start to stop
Trait Implementations§
Source§impl Clone for CalculationInfo
impl Clone for CalculationInfo
Source§fn clone(&self) -> CalculationInfo
fn clone(&self) -> CalculationInfo
Returns a copy 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 CalculationInfo
impl Debug for CalculationInfo
Source§impl Default for CalculationInfo
impl Default for CalculationInfo
Source§fn default() -> CalculationInfo
fn default() -> CalculationInfo
Returns the “default value” for a type. Read more
impl Copy for CalculationInfo
Auto Trait Implementations§
impl Freeze for CalculationInfo
impl RefUnwindSafe for CalculationInfo
impl Send for CalculationInfo
impl Sync for CalculationInfo
impl Unpin for CalculationInfo
impl UnwindSafe for CalculationInfo
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more