pub struct PoolKey {
pub operator: PublicAddress,
pub power: u64,
}Expand description
PoolKey is a small description of a pool. It affects the order of its representing pool in the Index Heap which is the state format of next validator set.
Fields§
§operator: PublicAddress§power: u64Implementations§
Trait Implementations§
Source§impl Ord for PoolKey
impl Ord for PoolKey
Source§impl PartialOrd for PoolKey
impl PartialOrd for PoolKey
impl Eq for PoolKey
Auto Trait Implementations§
impl Freeze for PoolKey
impl RefUnwindSafe for PoolKey
impl Send for PoolKey
impl Sync for PoolKey
impl Unpin for PoolKey
impl UnwindSafe for PoolKey
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