pub struct DeviceNodeSpec {
pub is_block: bool,
pub major: u32,
pub minor: u32,
}Expand description
A single device node’s identity for the cgroup device allowlist.
Fields§
§is_block: bool§major: u32§minor: u32Trait Implementations§
Source§impl Clone for DeviceNodeSpec
impl Clone for DeviceNodeSpec
Source§fn clone(&self) -> DeviceNodeSpec
fn clone(&self) -> DeviceNodeSpec
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 moreimpl Copy for DeviceNodeSpec
Source§impl Debug for DeviceNodeSpec
impl Debug for DeviceNodeSpec
impl Eq for DeviceNodeSpec
Source§impl PartialEq for DeviceNodeSpec
impl PartialEq for DeviceNodeSpec
Source§fn eq(&self, other: &DeviceNodeSpec) -> bool
fn eq(&self, other: &DeviceNodeSpec) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DeviceNodeSpec
Auto Trait Implementations§
impl Freeze for DeviceNodeSpec
impl RefUnwindSafe for DeviceNodeSpec
impl Send for DeviceNodeSpec
impl Sync for DeviceNodeSpec
impl Unpin for DeviceNodeSpec
impl UnsafeUnpin for DeviceNodeSpec
impl UnwindSafe for DeviceNodeSpec
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