pub enum EpochState {
InProgress,
Rewarding {
last_rewarded: MixId,
final_node_id: MixId,
},
ReconcilingEvents,
AdvancingEpoch,
}
Variants§
InProgress
Represents the state of an epoch that’s in progress (well, duh.) All actions are allowed to be issued.
Rewarding
Represents the state of an epoch when the rewarding entity has been decided on, and the mixnodes are in the process of being rewarded for their work in this epoch.
ReconcilingEvents
Represents the state of an epoch when all mixnodes have already been rewarded for their work in this epoch and all issued actions should now get resolved before being allowed to advance into the next epoch.
AdvancingEpoch
Represents the state of an epoch when all mixnodes have already been rewarded for their work in this epoch, all issued actions got resolved and the epoch should now be advanced whilst assigning new rewarded set.
Trait Implementations§
source§impl Clone for EpochState
impl Clone for EpochState
source§fn clone(&self) -> EpochState
fn clone(&self) -> EpochState
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 EpochState
impl Debug for EpochState
source§impl<'de> Deserialize<'de> for EpochState
impl<'de> Deserialize<'de> for EpochState
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 Display for EpochState
impl Display for EpochState
source§impl PartialEq<EpochState> for EpochState
impl PartialEq<EpochState> for EpochState
source§fn eq(&self, other: &EpochState) -> bool
fn eq(&self, other: &EpochState) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for EpochState
impl Serialize for EpochState
impl Copy for EpochState
impl Eq for EpochState
impl StructuralEq for EpochState
impl StructuralPartialEq for EpochState
Auto Trait Implementations§
impl RefUnwindSafe for EpochState
impl Send for EpochState
impl Sync for EpochState
impl Unpin for EpochState
impl UnwindSafe for EpochState
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