Enum spl_stake_pool::stake_program::StakeState [−][src]
Expand description
FIXME copied from the stake program
Variants
Expand description
FIXME copied from the stake program
Initialized(Meta)
Expand description
FIXME copied from the stake program
Expand description
FIXME copied from the stake program
Expand description
FIXME copied from the stake program
Implementations
impl StakeState
[src]
impl StakeState
[src]FIXME copied from the stake program
pub fn delegation(&self) -> Option<Delegation>
[src]
pub fn delegation(&self) -> Option<Delegation>
[src]Get Delegation
Trait Implementations
impl BorshDeserialize for StakeState
[src]
impl BorshDeserialize for StakeState
[src]fn deserialize(buf: &mut &[u8]) -> IoResult<Self>
[src]
fn deserialize(buf: &mut &[u8]) -> IoResult<Self>
[src]Deserializes this instance from a given slice of bytes. Updates the buffer to point at the remaining bytes. Read more
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
[src]
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
[src]Deserialize this instance from a slice of bytes.
fn is_u8() -> bool
[src]
fn is_u8() -> bool
[src]Whether Self is u8.
NOTE: Vec<u8>
is the most common use-case for serialization and deserialization, it’s
worth handling it as a special case to improve performance.
It’s a workaround for specific Vec<u8>
implementation versus generic Vec<T>
implementation. See https://github.com/rust-lang/rfcs/pull/1210 for details. Read more
impl Clone for StakeState
[src]
impl Clone for StakeState
[src]fn clone(&self) -> StakeState
[src]
fn clone(&self) -> StakeState
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for StakeState
[src]
impl Debug for StakeState
[src]impl<'de> Deserialize<'de> for StakeState
[src]
impl<'de> Deserialize<'de> for StakeState
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more
impl PartialEq<StakeState> for StakeState
[src]
impl PartialEq<StakeState> for StakeState
[src]fn eq(&self, other: &StakeState) -> bool
[src]
fn eq(&self, other: &StakeState) -> bool
[src]This method tests for self
and other
values to be equal, and is used
by ==
. Read more
fn ne(&self, other: &StakeState) -> bool
[src]
fn ne(&self, other: &StakeState) -> bool
[src]This method tests for !=
.
impl Serialize for StakeState
[src]
impl Serialize for StakeState
[src]impl Copy for StakeState
[src]
impl StructuralPartialEq for StakeState
[src]
Auto Trait Implementations
impl RefUnwindSafe for StakeState
impl Send for StakeState
impl Sync for StakeState
impl Unpin for StakeState
impl UnwindSafe for StakeState
Blanket Implementations
impl<T> AbiEnumVisitor for T where
T: Serialize + ?Sized,
impl<T> AbiEnumVisitor for T where
T: Serialize + ?Sized,
pub default fn visit_for_abi(
&self,
_digester: &mut AbiDigester
) -> Result<AbiDigester, DigestError>
&self,
_digester: &mut AbiDigester
) -> Result<AbiDigester, DigestError>
impl<T> AbiEnumVisitor for T where
T: Serialize + AbiExample + ?Sized,
impl<T> AbiEnumVisitor for T where
T: Serialize + AbiExample + ?Sized,
pub default fn visit_for_abi(
&self,
digester: &mut AbiDigester
) -> Result<AbiDigester, DigestError>
&self,
digester: &mut AbiDigester
) -> Result<AbiDigester, DigestError>
impl<T> AbiExample for T
impl<T> AbiExample for T
pub default fn example() -> T
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
pub fn vzip(self) -> V
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,