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