pub trait State<T> {
// Required methods
fn state(&self) -> Result<T, InstructionError>;
fn set_state(&self, state: &T) -> Result<(), InstructionError>;
}
Available on crate feature
bincode
only.pub trait State<T> {
// Required methods
fn state(&self) -> Result<T, InstructionError>;
fn set_state(&self, state: &T) -> Result<(), InstructionError>;
}
bincode
only.