Trait solana_sdk::account_utils::StateMut [−][src]
Convenience trait to covert bincode errors to instruction errors.
Required methods
fn state(&self) -> Result<T, InstructionError>
[src]
fn set_state(&mut self, state: &T) -> Result<(), InstructionError>
[src]
Implementors
impl<T> StateMut<T> for Account where
T: Serialize + DeserializeOwned,
[src]
T: Serialize + DeserializeOwned,