#[non_exhaustive]pub enum DutyKind {
Propose,
Attest,
SignCheckpoint,
ObserveL1,
}Expand description
Duty kinds a validator performs.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Propose
Propose a new L2 block (this validator is elected proposer).
Attest
Attest to a recent canonical head.
SignCheckpoint
Sign a per-epoch checkpoint digest.
ObserveL1
Observe L1 finalisation (passive).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for DutyKind
impl<'de> Deserialize<'de> for DutyKind
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
impl Copy for DutyKind
impl Eq for DutyKind
impl StructuralPartialEq for DutyKind
Auto Trait Implementations§
impl Freeze for DutyKind
impl RefUnwindSafe for DutyKind
impl Send for DutyKind
impl Sync for DutyKind
impl Unpin for DutyKind
impl UnsafeUnpin for DutyKind
impl UnwindSafe for DutyKind
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