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