pub struct RuntimeConfig {
pub runtime_path: String,
pub runtime_abi: Option<String>,
pub runtime_args: Vec<String>,
}Expand description
Runtime configuration for delegating binary execution to userland
This structure defines how a binary format should be executed via a userland runtime instead of being loaded directly by the kernel.
§Examples
- MS-DOS binaries executed via DOSBox (Linux ABI)
- Wasm binaries executed via a Scarlet-native Wasm runtime
- Java bytecode executed via a JVM
Fields§
§runtime_path: StringPath to the runtime executable in the VFS
runtime_abi: Option<String>ABI that the runtime itself uses If None, runtime’s ABI will be auto-detected
runtime_args: Vec<String>Additional arguments to pass to the runtime before the target binary Example: [“–emulate”, “dos”] for DOSBox
Trait Implementations§
Source§impl Clone for RuntimeConfig
impl Clone for RuntimeConfig
Source§fn clone(&self) -> RuntimeConfig
fn clone(&self) -> RuntimeConfig
Returns a duplicate of the value. Read more
1.0.0§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 RuntimeConfig
impl RefUnwindSafe for RuntimeConfig
impl Send for RuntimeConfig
impl Sync for RuntimeConfig
impl Unpin for RuntimeConfig
impl UnwindSafe for RuntimeConfig
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)