pub enum NextAction {
Initialise(u64),
Call(u64),
}Expand description
Presently, a snapshot can be of a preinitialised sandbox, which still needs an initialise function called in order to determine how to call into it, or of an already-properly-initialised sandbox which can be immediately called into. This keeps track of the difference.
TODO: this should not necessarily be around in the long term: ideally we would just preinitialise earlier in the snapshot creation process and never need this.
Variants§
Initialise(u64)
A sandbox in the preinitialise state still needs to be initialised by calling the initialise function
Call(u64)
A sandbox in the ready state can immediately be called into, using the dispatch function pointer.
Trait Implementations§
Source§impl Clone for NextAction
impl Clone for NextAction
Source§fn clone(&self) -> NextAction
fn clone(&self) -> NextAction
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 moreSource§impl PartialEq for NextAction
impl PartialEq for NextAction
Source§fn eq(&self, other: &NextAction) -> bool
fn eq(&self, other: &NextAction) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for NextAction
impl Eq for NextAction
impl StructuralPartialEq for NextAction
Auto Trait Implementations§
impl Freeze for NextAction
impl RefUnwindSafe for NextAction
impl Send for NextAction
impl Sync for NextAction
impl Unpin for NextAction
impl UnsafeUnpin for NextAction
impl UnwindSafe for NextAction
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