pub struct Config { /* private fields */ }
Available on crate feature
webc_runner_rt_dcgi
only.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§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> 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 moreSource§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§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.
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§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>
Source§impl<T> Upcastable for T
impl<T> Upcastable for T
Source§fn upcast_any_ref(&self) -> &(dyn Any + 'static)
fn upcast_any_ref(&self) -> &(dyn Any + 'static)
upcast ref
Source§fn upcast_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn upcast_any_mut(&mut self) -> &mut (dyn Any + 'static)
upcast mut ref