pub enum StakingUpdate {
Stake {
validator: Vec<u8>,
amount: u64,
},
Unstake {
validator: Vec<u8>,
amount: u64,
},
Withdraw {
validator: Vec<u8>,
},
Slash {
validator: Vec<u8>,
reason: SlashReason,
amount: u64,
redistribution: Vec<(Vec<u8>, u64)>,
},
Unjail {
validator: Vec<u8>,
},
}Variants§
Trait Implementations§
Source§impl Clone for StakingUpdate
impl Clone for StakingUpdate
Source§fn clone(&self) -> StakingUpdate
fn clone(&self) -> StakingUpdate
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for StakingUpdate
impl RefUnwindSafe for StakingUpdate
impl Send for StakingUpdate
impl Sync for StakingUpdate
impl Unpin for StakingUpdate
impl UnsafeUnpin for StakingUpdate
impl UnwindSafe for StakingUpdate
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