[][src]Trait solana_sdk::account_utils::State

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

Required methods

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

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

Loading content...

Implementors

impl<'a, T> State<T> for KeyedAccount<'a> where
    T: Serialize + DeserializeOwned
[src]

Loading content...