pub struct RuntimeConfig {
pub version: String,
pub command: Option<String>,
pub args: Vec<String>,
pub env: Vec<EnvVar>,
pub working_dir: Option<String>,
pub mounts: Vec<Mount>,
pub default_mounts: bool,
pub kernel_modules: Vec<String>,
pub debug_exit: Option<DebugExit>,
pub bootcmd: Vec<Vec<String>>,
pub follow_config: Option<String>,
}
Expand description
Gevulot VM runtime configuration.
See module-level documentation for more information.
Fields§
§version: String
Version of the config.
command: Option<String>
Program to execute.
args: Vec<String>
Arguments to the command.
env: Vec<EnvVar>
Environment variables.
working_dir: Option<String>
Working directory.
mounts: Vec<Mount>
Mounts.
default_mounts: bool
Default filesystems to mount.
These filesystems are defined by VM itself. Typically these are /proc
, /sys
etc.
When (de-)serlializing, defaults to true
.
kernel_modules: Vec<String>
Kernel modules.
debug_exit: Option<DebugExit>
Debug exit (e.g. for QEMU isa-debug-exit
device).
If none specified, a simple shutdown is expected.
bootcmd: Vec<Vec<String>>
Boot commands.
Arbitrary commands to execute at initialization time.
follow_config: Option<String>
Path to another runtime configuration file to process after current one.
Trait Implementations§
Source§impl Clone for RuntimeConfig
impl Clone for RuntimeConfig
Source§fn clone(&self) -> RuntimeConfig
fn clone(&self) -> RuntimeConfig
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 RuntimeConfig
impl Debug for RuntimeConfig
Source§impl Default for RuntimeConfig
impl Default for RuntimeConfig
Source§fn default() -> RuntimeConfig
fn default() -> RuntimeConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RuntimeConfig
impl<'de> Deserialize<'de> for RuntimeConfig
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 RuntimeConfig
impl RefUnwindSafe for RuntimeConfig
impl Send for RuntimeConfig
impl Sync for RuntimeConfig
impl Unpin for RuntimeConfig
impl UnwindSafe for RuntimeConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request