pub struct Linux {Show 13 fields
pub devices: Vec<Device>,
pub uid_mappings: Vec<IdMapping>,
pub gid_mappings: Vec<IdMapping>,
pub sysctl: HashMap<String, String>,
pub cgroups_path: Option<String>,
pub resources: Option<Resources>,
pub rootfs_propagation: Option<String>,
pub seccomp: Option<Seccomp>,
pub namespaces: Vec<Namespace>,
pub masked_paths: Vec<String>,
pub readonly_paths: Vec<String>,
pub mount_label: Option<String>,
pub time_offsets: Option<TimeOffsets>,
}Expand description
Linux-specific container configuration.
Fields§
§devices: Vec<Device>Devices to create in container.
uid_mappings: Vec<IdMapping>UID mappings for user namespace.
gid_mappings: Vec<IdMapping>GID mappings for user namespace.
sysctl: HashMap<String, String>Kernel parameters (sysctl).
cgroups_path: Option<String>Cgroups path.
resources: Option<Resources>Resource limits.
rootfs_propagation: Option<String>Root filesystem propagation mode.
seccomp: Option<Seccomp>Seccomp configuration.
namespaces: Vec<Namespace>Namespaces to join or create.
masked_paths: Vec<String>Paths to mask (make inaccessible).
readonly_paths: Vec<String>Paths to make read-only.
mount_label: Option<String>SELinux mount label.
time_offsets: Option<TimeOffsets>Time offsets.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Linux
impl<'de> Deserialize<'de> for Linux
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 Linux
impl RefUnwindSafe for Linux
impl Send for Linux
impl Sync for Linux
impl Unpin for Linux
impl UnsafeUnpin for Linux
impl UnwindSafe for Linux
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