Enum lighthouse_sdk::types::StakeStateType
source · pub enum StakeStateType {
Uninitialized,
Initialized,
Stake,
RewardsPool,
}Variants§
Trait Implementations§
source§impl BorshDeserialize for StakeStateType
impl BorshDeserialize for StakeStateType
fn deserialize_reader<R: Read>(reader: &mut R) -> Result<Self, Error>
source§fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes.
source§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
Deserialize this instance from a slice of bytes.
fn try_from_reader<R>(reader: &mut R) -> Result<Self, Error>where
R: Read,
source§impl BorshSerialize for StakeStateType
impl BorshSerialize for StakeStateType
source§impl Clone for StakeStateType
impl Clone for StakeStateType
source§fn clone(&self) -> StakeStateType
fn clone(&self) -> StakeStateType
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 StakeStateType
impl Debug for StakeStateType
source§impl EnumExt for StakeStateType
impl EnumExt for StakeStateType
source§impl Hash for StakeStateType
impl Hash for StakeStateType
source§impl PartialEq for StakeStateType
impl PartialEq for StakeStateType
source§fn eq(&self, other: &StakeStateType) -> bool
fn eq(&self, other: &StakeStateType) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd for StakeStateType
impl PartialOrd for StakeStateType
source§fn partial_cmp(&self, other: &StakeStateType) -> Option<Ordering>
fn partial_cmp(&self, other: &StakeStateType) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl Eq for StakeStateType
impl StructuralPartialEq for StakeStateType
Auto Trait Implementations§
impl Freeze for StakeStateType
impl RefUnwindSafe for StakeStateType
impl Send for StakeStateType
impl Sync for StakeStateType
impl Unpin for StakeStateType
impl UnwindSafe for StakeStateType
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