pub struct DeviceId(/* private fields */);Implementations§
Source§impl DeviceId
impl DeviceId
pub const NONE: DeviceId
pub const NULL: DeviceId
pub const ZERO: DeviceId
pub const FULL: DeviceId
pub const RANDOM: DeviceId
pub const URANDOM: DeviceId
pub const KMSG: DeviceId
pub const TTY: DeviceId
pub const PTMX: DeviceId
pub const HW_RANDOM: DeviceId
pub const UINPUT: DeviceId
pub const FUSE: DeviceId
pub const DEVICE_MAPPER: DeviceId
pub const LOOP_CONTROL: DeviceId
pub const FB0: DeviceId
pub const TUN: DeviceId
pub const MMCBLK0: DeviceId
pub const fn new(major: u32, minor: u32) -> DeviceId
pub const fn new_range(major: u32, minor: Range<u32>) -> Range<DeviceId> ⓘ
pub const fn from_bits(dev: u64) -> DeviceId
pub const fn bits(&self) -> u64
pub fn next_minor(&self) -> Option<DeviceId>
pub const fn major(&self) -> u32
pub const fn minor(&self) -> u32
Trait Implementations§
Source§impl Ord for DeviceId
impl Ord for DeviceId
Source§impl PartialOrd for DeviceId
impl PartialOrd for DeviceId
impl Copy for DeviceId
impl Eq for DeviceId
impl StructuralPartialEq for DeviceId
Auto Trait Implementations§
impl Freeze for DeviceId
impl RefUnwindSafe for DeviceId
impl Send for DeviceId
impl Sync for DeviceId
impl Unpin for DeviceId
impl UnsafeUnpin for DeviceId
impl UnwindSafe for DeviceId
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,
§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more