Struct oci_spec::runtime::LinuxNamespaceBuilder
source · pub struct LinuxNamespaceBuilder { /* private fields */ }
Expand description
Builder for LinuxNamespace
.
Implementations§
source§impl LinuxNamespaceBuilder
impl LinuxNamespaceBuilder
sourcepub fn typ<VALUE: Into<LinuxNamespaceType>>(self, value: VALUE) -> Self
pub fn typ<VALUE: Into<LinuxNamespaceType>>(self, value: VALUE) -> Self
Type is the type of namespace.
sourcepub fn path<VALUE: Into<PathBuf>>(self, value: VALUE) -> Self
pub fn path<VALUE: Into<PathBuf>>(self, value: VALUE) -> Self
Path is a path to an existing namespace persisted on disk that can be joined and is of the same type
sourcepub fn build(self) -> Result<LinuxNamespace, OciSpecError>
pub fn build(self) -> Result<LinuxNamespace, OciSpecError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LinuxNamespaceBuilder
impl RefUnwindSafe for LinuxNamespaceBuilder
impl Send for LinuxNamespaceBuilder
impl Sync for LinuxNamespaceBuilder
impl Unpin for LinuxNamespaceBuilder
impl UnwindSafe for LinuxNamespaceBuilder
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