#[non_exhaustive]pub enum IsolationSpec {
None,
Jailer {
uid: u32,
gid: u32,
chroot_base: PathBuf,
netns: Option<PathBuf>,
new_pid_ns: bool,
cgroup: Option<CgroupSpec>,
},
}Expand description
How the VMM process is confined.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
None
Run the VMM as the caller, unconfined.
Jailer
Run under a jailer (Firecracker’s jailer, or an equivalent).
Fields
§
cgroup: Option<CgroupSpec>Cgroup placement.
Trait Implementations§
Source§impl Clone for IsolationSpec
impl Clone for IsolationSpec
Source§impl Debug for IsolationSpec
impl Debug for IsolationSpec
Source§impl Default for IsolationSpec
impl Default for IsolationSpec
Source§impl<'de> Deserialize<'de> for IsolationSpec
impl<'de> Deserialize<'de> for IsolationSpec
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
impl Eq for IsolationSpec
Source§impl PartialEq for IsolationSpec
impl PartialEq for IsolationSpec
Source§impl Serialize for IsolationSpec
impl Serialize for IsolationSpec
impl StructuralPartialEq for IsolationSpec
Auto Trait Implementations§
impl Freeze for IsolationSpec
impl RefUnwindSafe for IsolationSpec
impl Send for IsolationSpec
impl Sync for IsolationSpec
impl Unpin for IsolationSpec
impl UnsafeUnpin for IsolationSpec
impl UnwindSafe for IsolationSpec
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.