pub enum StakeStateV2 {
Uninitialized,
Initialized(Meta),
Stake(Meta, Stake, StakeFlags),
RewardsPool,
}
Variants§
Implementations§
Source§impl StakeStateV2
impl StakeStateV2
Trait Implementations§
Source§impl BorshDeserialize for StakeStateV2
impl BorshDeserialize for StakeStateV2
fn deserialize_reader<R: Read>(reader: &mut R) -> Result<Self>
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 BorshDeserialize for StakeStateV2
impl BorshDeserialize for StakeStateV2
fn deserialize_reader<R: Read>(reader: &mut R) -> Result<Self>
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 StakeStateV2
impl BorshSerialize for StakeStateV2
Source§impl BorshSerialize for StakeStateV2
impl BorshSerialize for StakeStateV2
Source§impl Clone for StakeStateV2
impl Clone for StakeStateV2
Source§fn clone(&self) -> StakeStateV2
fn clone(&self) -> StakeStateV2
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 StakeStateV2
impl Debug for StakeStateV2
Source§impl Default for StakeStateV2
impl Default for StakeStateV2
Source§fn default() -> StakeStateV2
fn default() -> StakeStateV2
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for StakeStateV2
impl<'de> Deserialize<'de> for StakeStateV2
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for StakeStateV2
impl PartialEq for StakeStateV2
Source§impl Serialize for StakeStateV2
impl Serialize for StakeStateV2
impl Copy for StakeStateV2
impl StructuralPartialEq for StakeStateV2
Auto Trait Implementations§
impl Freeze for StakeStateV2
impl RefUnwindSafe for StakeStateV2
impl Send for StakeStateV2
impl Sync for StakeStateV2
impl Unpin for StakeStateV2
impl UnwindSafe for StakeStateV2
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