pub struct OpcodeHandler {
pub opcode: u32,
pub body: Vec<Node>,
}Expand description
Caller-supplied opcode extension wired into the megakernel at
bootstrap. The body executes when opcode matches; within the
body, variables slot_base, opcode, arg0..arg2 and the
buffers control/ring_buffer/debug_log are in scope.
Fields§
§opcode: u32Discriminant matched against ring_buffer[slot_base + OPCODE_WORD].
body: Vec<Node>IR nodes executed when the match lands.
Trait Implementations§
Source§impl Clone for OpcodeHandler
impl Clone for OpcodeHandler
Source§fn clone(&self) -> OpcodeHandler
fn clone(&self) -> OpcodeHandler
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for OpcodeHandler
impl !RefUnwindSafe for OpcodeHandler
impl Send for OpcodeHandler
impl Sync for OpcodeHandler
impl Unpin for OpcodeHandler
impl UnsafeUnpin for OpcodeHandler
impl !UnwindSafe for OpcodeHandler
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