pub struct WasmResumable {
pub(crate) stack: Stack,
pub(crate) pc: usize,
pub(crate) stp: usize,
pub(crate) current_func_addr: FuncAddr,
pub(crate) maybe_fuel: Option<u64>,
}Expand description
A WasmResumable is an object used to resume execution of Wasm code.
§Safety
TODO:
- stack must be initialized with correct parameters to function referenced by function address
- program counter must be valid for the bytecode of function referenced by the function address
- stp must point to the correct sidetable entry for the function referenced by function address
Fields§
§stack: Stack§pc: usize§stp: usize§current_func_addr: FuncAddr§maybe_fuel: Option<u64>Implementations§
Trait Implementations§
Source§impl Clone for WasmResumable
impl Clone for WasmResumable
Source§fn clone(&self) -> WasmResumable
fn clone(&self) -> WasmResumable
Returns a duplicate of the value. Read more
1.0.0 · 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 WasmResumable
impl RefUnwindSafe for WasmResumable
impl Send for WasmResumable
impl Sync for WasmResumable
impl Unpin for WasmResumable
impl UnwindSafe for WasmResumable
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