Trait solana_sdk::account_utils::State [−][src]
pub trait State<T> { fn state(&self) -> Result<T, InstructionError>; fn set_state(&self, state: &T) -> Result<(), InstructionError>; }
Required methods
fn state(&self) -> Result<T, InstructionError>
[src]
fn set_state(&self, state: &T) -> Result<(), InstructionError>
[src]
Implementors
impl<'a, T> State<T> for KeyedAccount<'a> where
T: Serialize + DeserializeOwned,
[src]
impl<'a, T> State<T> for KeyedAccount<'a> where
T: Serialize + DeserializeOwned,
[src]