pub struct TrivialHandler;
Expand description
Trivial InstructionHandler implementation, without I/O support
Trait Implementations§
Source§impl InstructionHandler for TrivialHandler
impl InstructionHandler for TrivialHandler
Source§type Err = Error
type Err = Error
Err return type after processing instructions.
TODO: Convert
Err
into std::ops::Try
once it is stabilizedfn create_vm(_: Self::Context) -> VM<Self>
fn process_instruction( vm_state: &mut VMState, context: &mut Self::Context, instruction: Instruction, ) -> Result<(), Self::Err>
Auto Trait Implementations§
impl Freeze for TrivialHandler
impl RefUnwindSafe for TrivialHandler
impl Send for TrivialHandler
impl Sync for TrivialHandler
impl Unpin for TrivialHandler
impl UnwindSafe for TrivialHandler
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more