pub struct RuntimeSpec { /* private fields */ }Expand description
OCI runtime metadata. This type does not execute a runtime.
Implementations§
Source§impl RuntimeSpec
impl RuntimeSpec
Sourcepub fn new(root: RootFilesystem) -> RuntimeSpec
pub fn new(root: RootFilesystem) -> RuntimeSpec
Creates runtime metadata from a root filesystem marker.
Sourcepub fn with_arg(self, arg: ProcessArg) -> RuntimeSpec
pub fn with_arg(self, arg: ProcessArg) -> RuntimeSpec
Adds a process argument.
Sourcepub fn with_mount(self, mount: Mount) -> RuntimeSpec
pub fn with_mount(self, mount: Mount) -> RuntimeSpec
Adds a mount.
Sourcepub fn with_hook(self, hook: OciHook) -> RuntimeSpec
pub fn with_hook(self, hook: OciHook) -> RuntimeSpec
Adds a hook.
Sourcepub fn with_namespace(self, namespace: NamespaceKind) -> RuntimeSpec
pub fn with_namespace(self, namespace: NamespaceKind) -> RuntimeSpec
Adds a namespace kind.
Sourcepub const fn root(&self) -> &RootFilesystem
pub const fn root(&self) -> &RootFilesystem
Returns the root filesystem marker.
Sourcepub fn namespaces(&self) -> &[NamespaceKind]
pub fn namespaces(&self) -> &[NamespaceKind]
Returns namespaces.
Trait Implementations§
Source§impl Clone for RuntimeSpec
impl Clone for RuntimeSpec
Source§fn clone(&self) -> RuntimeSpec
fn clone(&self) -> RuntimeSpec
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RuntimeSpec
impl Debug for RuntimeSpec
Source§impl PartialEq for RuntimeSpec
impl PartialEq for RuntimeSpec
Source§fn eq(&self, other: &RuntimeSpec) -> bool
fn eq(&self, other: &RuntimeSpec) -> bool
Tests for
self and other values to be equal, and is used by ==.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