pub trait StateMut<T> {
// Required methods
fn state(&self) -> Result<T, InstructionError>;
fn set_state(&mut self, state: &T) -> Result<(), InstructionError>;
}
Available on crate feature
bincode
only.Expand description
Convenience trait to covert bincode errors to instruction errors.