pub struct ElectionTimings {
pub validators_elected_for: u32,
pub elections_start_before: u32,
pub elections_end_before: u32,
pub stake_held_for: u32,
}Expand description
Validators election timings.
Fields§
§validators_elected_for: u32Validation round length in seconds.
elections_start_before: u32Duration in seconds until the end of the validation round when the election starts.
elections_end_before: u32Duration in seconds until the end of the validation round when the election ends.
stake_held_for: u32How long validator stake will be frozen after the validation round end.
Trait Implementations§
Source§impl Clone for ElectionTimings
impl Clone for ElectionTimings
Source§fn clone(&self) -> ElectionTimings
fn clone(&self) -> ElectionTimings
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ElectionTimings
impl Debug for ElectionTimings
Source§impl<'de> Deserialize<'de> for ElectionTimings
impl<'de> Deserialize<'de> for ElectionTimings
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<'tlb> Load<'tlb> for ElectionTimings
impl<'tlb> Load<'tlb> for ElectionTimings
Source§impl PartialEq for ElectionTimings
impl PartialEq for ElectionTimings
Source§impl Serialize for ElectionTimings
impl Serialize for ElectionTimings
Source§impl Store for ElectionTimings
impl Store for ElectionTimings
Source§fn store_into(
&self,
__builder: &mut CellBuilder,
__context: &dyn CellContext,
) -> Result<(), Error>
fn store_into( &self, __builder: &mut CellBuilder, __context: &dyn CellContext, ) -> Result<(), Error>
Tries to store itself into the cell builder.
impl Copy for ElectionTimings
impl Eq for ElectionTimings
impl StructuralPartialEq for ElectionTimings
Auto Trait Implementations§
impl Freeze for ElectionTimings
impl RefUnwindSafe for ElectionTimings
impl Send for ElectionTimings
impl Sync for ElectionTimings
impl Unpin for ElectionTimings
impl UnwindSafe for ElectionTimings
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compares
self to key and returns true if they are equal.