Enum pow_types::StakingEvent
source · pub enum StakingEvent {
Register(H256, Vec<u8>, Vec<u8>),
IncreaseStake(H256, u64),
Retire(H256, u64),
}
Variants§
Register(H256, Vec<u8>, Vec<u8>)
(address, bls_public_key, vrf_public_key)
IncreaseStake(H256, u64)
(address, updated_voting_power)
Retire(H256, u64)
(address, unlock_voting_power)
Trait Implementations§
source§impl Debug for StakingEvent
impl Debug for StakingEvent
source§impl<'de> Deserialize<'de> for StakingEvent
impl<'de> Deserialize<'de> for StakingEvent
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 PartialEq for StakingEvent
impl PartialEq for StakingEvent
source§fn eq(&self, other: &StakingEvent) -> bool
fn eq(&self, other: &StakingEvent) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for StakingEvent
impl Serialize for StakingEvent
impl Eq for StakingEvent
impl StructuralPartialEq for StakingEvent
Auto Trait Implementations§
impl RefUnwindSafe for StakingEvent
impl Send for StakingEvent
impl Sync for StakingEvent
impl Unpin for StakingEvent
impl UnwindSafe for StakingEvent
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