pub struct Container { /* private fields */ }Expand description
Container runtime that orchestrates all isolation mechanisms
Execution flow matches the formal specifications:
- Create namespaces (Nucleus_Isolation_NamespaceLifecycle.tla)
- Create and configure cgroups (Nucleus_Resources_CgroupLifecycle.tla)
- Mount tmpfs and populate context (Nucleus_Filesystem_FilesystemLifecycle.tla)
- Drop capabilities and apply seccomp (Nucleus_Security_SecurityEnforcement.tla)
- Execute target process
Implementations§
Source§impl Container
impl Container
pub fn new(config: ContainerConfig) -> Self
Sourcepub fn create(&self) -> Result<CreatedContainer>
pub fn create(&self) -> Result<CreatedContainer>
Create phase: fork the child, set up cgroup/bridge, leave child blocked
on the exec FIFO. Returns a CreatedContainer whose start() method
releases the child process.
Auto Trait Implementations§
impl Freeze for Container
impl RefUnwindSafe for Container
impl Send for Container
impl Sync for Container
impl Unpin for Container
impl UnsafeUnpin for Container
impl UnwindSafe for Container
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