#[repr(u8)]pub enum PoolInstruction {
Claim = 0,
Join = 1,
OpenShare = 2,
Stake = 3,
Unstake = 4,
Attribute = 100,
Commit = 101,
Launch = 102,
OpenStake = 103,
Submit = 104,
}
Variants§
Claim = 0
Join = 1
👎Deprecated since 0.3.0: Staking has moved to the global boost program
Stake = 3
👎Deprecated since 0.3.0: Staking has moved to the global boost program
Unstake = 4
Attribute = 100
Commit = 101
👎Deprecated since 0.3.0: Staking has moved to the global boost program
Launch = 102
OpenStake = 103
👎Deprecated since 0.3.0: Staking has moved to the global boost program
Submit = 104
Trait Implementations§
Source§impl Clone for PoolInstruction
impl Clone for PoolInstruction
Source§fn clone(&self) -> PoolInstruction
fn clone(&self) -> PoolInstruction
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for PoolInstruction
impl Debug for PoolInstruction
Source§impl PartialEq for PoolInstruction
impl PartialEq for PoolInstruction
Source§impl TryFrom<u8> for PoolInstruction
impl TryFrom<u8> for PoolInstruction
Source§type Error = TryFromPrimitiveError<PoolInstruction>
type Error = TryFromPrimitiveError<PoolInstruction>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for PoolInstruction
impl TryFromPrimitive for PoolInstruction
const NAME: &'static str = "PoolInstruction"
type Primitive = u8
type Error = TryFromPrimitiveError<PoolInstruction>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for PoolInstruction
impl Eq for PoolInstruction
impl StructuralPartialEq for PoolInstruction
Auto Trait Implementations§
impl Freeze for PoolInstruction
impl RefUnwindSafe for PoolInstruction
impl Send for PoolInstruction
impl Sync for PoolInstruction
impl Unpin for PoolInstruction
impl UnwindSafe for PoolInstruction
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more