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

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>[src]

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

Loading content...

Implementors

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

Loading content...