Trait solana_sdk::account_utils::State
source · pub trait State<T> {
// Required methods
fn state(&self) -> Result<T, InstructionError>;
fn set_state(&self, state: &T) -> Result<(), InstructionError>;
}
pub trait State<T> {
// Required methods
fn state(&self) -> Result<T, InstructionError>;
fn set_state(&self, state: &T) -> Result<(), InstructionError>;
}