Enum solana_sdk::nonce::State
source · pub enum State {
Uninitialized,
Initialized(Data),
}
Expand description
The state of a durable transaction nonce account.
When created in memory with State::default
or when deserialized from an
uninitialized account, a nonce account will be State::Uninitialized
.
Variants§
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for State
impl<'de> Deserialize<'de> for State
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<State, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<State, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<State> for State
impl PartialEq<State> for State
source§impl Serialize for State
impl Serialize for State
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where __S: Serializer,
Serialize this value into the given Serde serializer. Read more