[][src]Trait solana_sdk::account_utils::StateMut

pub trait StateMut<T> {
    fn state(&self) -> Result<T, InstructionError>;
fn set_state(&mut self, state: &T) -> Result<(), InstructionError>; }

Convenience trait to covert bincode errors to instruction errors.

Required methods

fn state(&self) -> Result<T, InstructionError>

fn set_state(&mut self, state: &T) -> Result<(), InstructionError>

Loading content...

Implementors

impl<T> StateMut<T> for Account where
    T: Serialize + DeserializeOwned
[src]

Loading content...