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

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

Convenience trait to covert bincode errors to instruction errors.

Required methods

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

pub 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...