enum MergeKind {
Inactive(Meta, u64),
ActivationEpoch(Meta, Stake),
FullyActive(Meta, Stake),
}
Variants§
Implementations§
source§impl MergeKind
impl MergeKind
fn meta(&self) -> &Meta
fn active_stake(&self) -> Option<&Stake>
fn get_if_mergeable( invoke_context: &InvokeContext<'_>, stake_state: &StakeState, stake_lamports: u64, clock: &Clock, stake_history: &StakeHistory ) -> Result<Self, InstructionError>
fn metas_can_merge( invoke_context: &InvokeContext<'_>, stake: &Meta, source: &Meta, clock: &Clock ) -> Result<(), InstructionError>
fn active_delegations_can_merge( invoke_context: &InvokeContext<'_>, stake: &Delegation, source: &Delegation ) -> Result<(), InstructionError>
fn active_stakes_can_merge( invoke_context: &InvokeContext<'_>, stake: &Stake, source: &Stake ) -> Result<(), InstructionError>
fn merge( self, invoke_context: &InvokeContext<'_>, source: Self, clock: &Clock ) -> Result<Option<StakeState>, InstructionError>
Trait Implementations§
source§impl PartialEq<MergeKind> for MergeKind
impl PartialEq<MergeKind> for MergeKind
impl StructuralPartialEq for MergeKind
Auto Trait Implementations§
impl RefUnwindSafe for MergeKind
impl Send for MergeKind
impl Sync for MergeKind
impl Unpin for MergeKind
impl UnwindSafe for MergeKind
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