pub struct SandboxRuntimeOptions {
pub workdir: Option<String>,
pub shell: Option<String>,
pub scripts: BTreeMap<String, String>,
pub entrypoint: Option<Vec<String>>,
pub cmd: Option<Vec<String>>,
pub hostname: Option<String>,
pub user: Option<String>,
pub log_level: Option<SandboxLogLevel>,
pub metrics_sample_interval_ms: Option<u64>,
pub disable_metrics_sample: bool,
}Expand description
Guest runtime options for a sandbox.
Fields§
§workdir: Option<String>Working directory inside the guest.
shell: Option<String>Default shell for scripts and interactive sessions.
scripts: BTreeMap<String, String>Named scripts available inside the guest.
entrypoint: Option<Vec<String>>Image entrypoint override.
cmd: Option<Vec<String>>Image command override.
hostname: Option<String>Guest hostname override.
user: Option<String>Guest user identity override.
log_level: Option<SandboxLogLevel>Runtime log verbosity.
metrics_sample_interval_ms: Option<u64>Metrics sampling interval in milliseconds. None disables sampling.
disable_metrics_sample: boolForce-disable metrics sampling regardless of metrics_sample_interval_ms.
Trait Implementations§
Source§impl Clone for SandboxRuntimeOptions
impl Clone for SandboxRuntimeOptions
Source§fn clone(&self) -> SandboxRuntimeOptions
fn clone(&self) -> SandboxRuntimeOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SandboxRuntimeOptions
impl Debug for SandboxRuntimeOptions
Source§impl Default for SandboxRuntimeOptions
impl Default for SandboxRuntimeOptions
Source§impl<'de> Deserialize<'de> for SandboxRuntimeOptionswhere
SandboxRuntimeOptions: Default,
impl<'de> Deserialize<'de> for SandboxRuntimeOptionswhere
SandboxRuntimeOptions: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SandboxRuntimeOptions
impl RefUnwindSafe for SandboxRuntimeOptions
impl Send for SandboxRuntimeOptions
impl Sync for SandboxRuntimeOptions
impl Unpin for SandboxRuntimeOptions
impl UnsafeUnpin for SandboxRuntimeOptions
impl UnwindSafe for SandboxRuntimeOptions
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