Struct wasmer_wasix::runners::wasi_common::CommonWasiOptions
source · pub(crate) struct CommonWasiOptions {Show 15 fields
pub(crate) entry_function: Option<String>,
pub(crate) args: Vec<String>,
pub(crate) env: HashMap<String, String>,
pub(crate) forward_host_env: bool,
pub(crate) mapped_host_commands: Vec<MappedCommand>,
pub(crate) mounts: Vec<MountedDirectory>,
pub(crate) is_home_mapped: bool,
pub(crate) is_tmp_mapped: bool,
pub(crate) injected_packages: Vec<BinaryPackage>,
pub(crate) capabilities: Capabilities,
pub(crate) journals: Vec<Arc<DynJournal>>,
pub(crate) snapshot_on: Vec<SnapshotTrigger>,
pub(crate) snapshot_interval: Option<Duration>,
pub(crate) current_dir: Option<PathBuf>,
pub(crate) additional_imports: Imports,
}
Fields§
§entry_function: Option<String>
§args: Vec<String>
§env: HashMap<String, String>
§forward_host_env: bool
§mapped_host_commands: Vec<MappedCommand>
§mounts: Vec<MountedDirectory>
§is_home_mapped: bool
§is_tmp_mapped: bool
§injected_packages: Vec<BinaryPackage>
§capabilities: Capabilities
§journals: Vec<Arc<DynJournal>>
§snapshot_on: Vec<SnapshotTrigger>
§snapshot_interval: Option<Duration>
§current_dir: Option<PathBuf>
§additional_imports: Imports
Implementations§
source§impl CommonWasiOptions
impl CommonWasiOptions
pub(crate) fn prepare_webc_env( &self, builder: &mut WasiEnvBuilder, container_fs: Option<Arc<dyn FileSystem + Send + Sync>>, wasi: &WasiAnnotation, root_fs: Option<TmpFileSystem>, ) -> Result<(), Error>
fn populate_env(&self, wasi: &WasiAnnotation, builder: &mut WasiEnvBuilder)
fn populate_args(&self, wasi: &WasiAnnotation, builder: &mut WasiEnvBuilder)
Trait Implementations§
source§impl Clone for CommonWasiOptions
impl Clone for CommonWasiOptions
source§fn clone(&self) -> CommonWasiOptions
fn clone(&self) -> CommonWasiOptions
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 CommonWasiOptions
impl Debug for CommonWasiOptions
source§impl Default for CommonWasiOptions
impl Default for CommonWasiOptions
source§fn default() -> CommonWasiOptions
fn default() -> CommonWasiOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CommonWasiOptions
impl !RefUnwindSafe for CommonWasiOptions
impl Send for CommonWasiOptions
impl Sync for CommonWasiOptions
impl Unpin for CommonWasiOptions
impl !UnwindSafe for CommonWasiOptions
Blanket Implementations§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Returns the layout of the type.
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> Pointee for T
impl<T> Pointee for T
§impl<T> Upcastable for T
impl<T> Upcastable for T
fn upcast_any_ref(&self) -> &(dyn Any + 'static)
fn upcast_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn upcast_any_box(self: Box<T>) -> Box<dyn Any>
§impl<T> Upcastable for T
impl<T> Upcastable for T
§fn upcast_any_ref(&self) -> &(dyn Any + 'static)
fn upcast_any_ref(&self) -> &(dyn Any + 'static)
upcast ref
§fn upcast_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn upcast_any_mut(&mut self) -> &mut (dyn Any + 'static)
upcast mut ref
§fn upcast_any_box(self: Box<T>) -> Box<dyn Any>
fn upcast_any_box(self: Box<T>) -> Box<dyn Any>
upcast boxed dyn