Struct RuntimeSpec
pub struct RuntimeSpec { /* private fields */ }Expand description
OCI runtime metadata. This type does not execute a runtime.
Implementations§
§impl RuntimeSpec
impl RuntimeSpec
pub fn new(root: RootFilesystem) -> RuntimeSpec
pub fn new(root: RootFilesystem) -> RuntimeSpec
Creates runtime metadata from a root filesystem marker.
pub fn with_arg(self, arg: ProcessArg) -> RuntimeSpec
pub fn with_arg(self, arg: ProcessArg) -> RuntimeSpec
Adds a process argument.
pub fn with_mount(self, mount: Mount) -> RuntimeSpec
pub fn with_mount(self, mount: Mount) -> RuntimeSpec
Adds a mount.
pub fn with_hook(self, hook: OciHook) -> RuntimeSpec
pub fn with_hook(self, hook: OciHook) -> RuntimeSpec
Adds a hook.
pub fn with_namespace(self, namespace: NamespaceKind) -> RuntimeSpec
pub fn with_namespace(self, namespace: NamespaceKind) -> RuntimeSpec
Adds a namespace kind.
pub const fn root(&self) -> &RootFilesystem
pub const fn root(&self) -> &RootFilesystem
Returns the root filesystem marker.
pub fn namespaces(&self) -> &[NamespaceKind]
pub fn namespaces(&self) -> &[NamespaceKind]
Returns namespaces.
pub fn hooks(&self) -> &[OciHook]
pub fn hooks(&self) -> &[OciHook]
Returns hooks.
Trait Implementations§
§impl Clone for RuntimeSpec
impl Clone for RuntimeSpec
§fn clone(&self) -> RuntimeSpec
fn clone(&self) -> RuntimeSpec
Returns a duplicate 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 more§impl Debug for RuntimeSpec
impl Debug for RuntimeSpec
§impl PartialEq for RuntimeSpec
impl PartialEq for RuntimeSpec
impl Eq for RuntimeSpec
impl StructuralPartialEq for RuntimeSpec
Auto Trait Implementations§
impl Freeze for RuntimeSpec
impl RefUnwindSafe for RuntimeSpec
impl Send for RuntimeSpec
impl Sync for RuntimeSpec
impl Unpin for RuntimeSpec
impl UnsafeUnpin for RuntimeSpec
impl UnwindSafe for RuntimeSpec
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