Enum oci_spec::runtime::LinuxNamespaceType
source · pub enum LinuxNamespaceType {
Mount = 131_072,
Cgroup = 33_554_432,
Uts = 67_108_864,
Ipc = 134_217_728,
User = 268_435_456,
Pid = 536_870_912,
Network = 1_073_741_824,
Time = 128,
}
Expand description
Available Linux namespaces.
Variants§
Mount = 131_072
Mount Namespace for isolating mount points
Cgroup = 33_554_432
Cgroup Namespace for isolating cgroup hierarchies
Uts = 67_108_864
Uts Namespace for isolating hostname and NIS domain name
Ipc = 134_217_728
Ipc Namespace for isolating System V, IPC, POSIX message queues
User = 268_435_456
User Namespace for isolating user and group ids
Pid = 536_870_912
PID Namespace for isolating process ids
Network = 1_073_741_824
Network Namespace for isolating network devices, ports, stacks etc.
Time = 128
Time Namespace for isolating the clocks
Trait Implementations§
source§impl Clone for LinuxNamespaceType
impl Clone for LinuxNamespaceType
source§fn clone(&self) -> LinuxNamespaceType
fn clone(&self) -> LinuxNamespaceType
Returns a copy 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 moresource§impl Debug for LinuxNamespaceType
impl Debug for LinuxNamespaceType
source§impl Default for LinuxNamespaceType
impl Default for LinuxNamespaceType
source§impl<'de> Deserialize<'de> for LinuxNamespaceType
impl<'de> Deserialize<'de> for LinuxNamespaceType
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for LinuxNamespaceType
impl Display for LinuxNamespaceType
source§impl Hash for LinuxNamespaceType
impl Hash for LinuxNamespaceType
source§impl PartialEq for LinuxNamespaceType
impl PartialEq for LinuxNamespaceType
source§fn eq(&self, other: &LinuxNamespaceType) -> bool
fn eq(&self, other: &LinuxNamespaceType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for LinuxNamespaceType
impl Serialize for LinuxNamespaceType
source§impl TryFrom<&str> for LinuxNamespaceType
impl TryFrom<&str> for LinuxNamespaceType
impl Copy for LinuxNamespaceType
impl Eq for LinuxNamespaceType
impl StructuralPartialEq for LinuxNamespaceType
Auto Trait Implementations§
impl Freeze for LinuxNamespaceType
impl RefUnwindSafe for LinuxNamespaceType
impl Send for LinuxNamespaceType
impl Sync for LinuxNamespaceType
impl Unpin for LinuxNamespaceType
impl UnwindSafe for LinuxNamespaceType
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)