Struct wasmer_wasix::runners::dcgi::Config
source · pub struct Config {
inner: Config,
}
Fields§
§inner: Config
Implementations§
source§impl Config
impl Config
pub fn inner(&mut self) -> &mut Config
pub fn addr(&mut self, addr: SocketAddr) -> &mut Self
sourcepub fn arg(&mut self, arg: impl Into<String>) -> &mut Self
pub fn arg(&mut self, arg: impl Into<String>) -> &mut Self
Add an argument to the WASI executable’s command-line arguments.
sourcepub fn args<A, S>(&mut self, args: A) -> &mut Self
pub fn args<A, S>(&mut self, args: A) -> &mut Self
Add multiple arguments to the WASI executable’s command-line arguments.
sourcepub fn env(
&mut self,
name: impl Into<String>,
value: impl Into<String>,
) -> &mut Self
pub fn env( &mut self, name: impl Into<String>, value: impl Into<String>, ) -> &mut Self
Expose an environment variable to the guest.
sourcepub fn envs<I, K, V>(&mut self, variables: I) -> &mut Self
pub fn envs<I, K, V>(&mut self, variables: I) -> &mut Self
Expose multiple environment variables to the guest.
sourcepub fn forward_host_env(&mut self) -> &mut Self
pub fn forward_host_env(&mut self) -> &mut Self
Forward all of the host’s environment variables to the guest.
pub fn map_directory(&mut self, dir: MappedDirectory) -> &mut Self
pub fn map_directories( &mut self, mappings: impl IntoIterator<Item = MappedDirectory>, ) -> &mut Self
sourcepub fn callbacks(&mut self, callbacks: impl Callbacks + 'static) -> &mut Self
pub fn callbacks(&mut self, callbacks: impl Callbacks + 'static) -> &mut Self
Set callbacks that will be triggered at various points in the runner’s lifecycle.
sourcepub fn inject_package(&mut self, pkg: BinaryPackage) -> &mut Self
pub fn inject_package(&mut self, pkg: BinaryPackage) -> &mut Self
Add a package that should be available to the instance at runtime.
sourcepub fn inject_packages(
&mut self,
packages: impl IntoIterator<Item = BinaryPackage>,
) -> &mut Self
pub fn inject_packages( &mut self, packages: impl IntoIterator<Item = BinaryPackage>, ) -> &mut Self
Add packages that should be available to the instance at runtime.
pub fn capabilities(&mut self) -> &mut Capabilities
pub fn add_snapshot_trigger(&mut self, on: SnapshotTrigger)
pub fn add_default_snapshot_triggers(&mut self) -> &mut Self
pub fn has_snapshot_trigger(&self, on: SnapshotTrigger) -> bool
pub fn with_snapshot_interval(&mut self, period: Duration) -> &mut Self
pub fn add_journal(&mut self, journal: Arc<DynJournal>) -> &mut Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl !RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl !UnwindSafe for Config
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
§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