Struct lunatic_process::WasmProcess
source · pub struct WasmProcess { /* private fields */ }
Expand description
A WasmProcess
represents an instance of a Wasm module that is being executed.
They can be created with spawn_wasm
, and once spawned they will be
running in the background and can’t be observed directly.
Implementations§
source§impl WasmProcess
impl WasmProcess
sourcepub fn new(id: u64, signal_mailbox: UnboundedSender<Signal>) -> Self
pub fn new(id: u64, signal_mailbox: UnboundedSender<Signal>) -> Self
Create a new WasmProcess
Trait Implementations§
source§impl Clone for WasmProcess
impl Clone for WasmProcess
source§fn clone(&self) -> WasmProcess
fn clone(&self) -> WasmProcess
Returns a copy 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 moresource§impl Debug for WasmProcess
impl Debug for WasmProcess
Auto Trait Implementations§
impl !RefUnwindSafe for WasmProcess
impl Send for WasmProcess
impl Sync for WasmProcess
impl Unpin for WasmProcess
impl !UnwindSafe for WasmProcess
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
§impl<T> GetSetFdFlags for T
impl<T> GetSetFdFlags for T
§fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
fn get_fd_flags(&self) -> Result<FdFlags, Error>where T: AsFilelike,
Query the “status” flags for the
self
file descriptor.