pub struct DeviceType(/* private fields */);Implementations§
Source§impl DeviceType
impl DeviceType
pub const NONE: DeviceType
pub const NULL: DeviceType
pub const ZERO: DeviceType
pub const FULL: DeviceType
pub const RANDOM: DeviceType
pub const URANDOM: DeviceType
pub const KMSG: DeviceType
pub const TTY: DeviceType
pub const PTMX: DeviceType
pub const HW_RANDOM: DeviceType
pub const UINPUT: DeviceType
pub const FUSE: DeviceType
pub const DEVICE_MAPPER: DeviceType
pub const LOOP_CONTROL: DeviceType
pub const FB0: DeviceType
pub const TUN: DeviceType
pub const fn new(major: u32, minor: u32) -> DeviceType
pub const fn new_range(major: u32, minor: Range<u32>) -> Range<DeviceType> ⓘ
pub const fn from_bits(dev: u64) -> DeviceType
pub const fn bits(&self) -> u64
pub fn next_minor(&self) -> Option<DeviceType>
pub const fn major(&self) -> u32
pub const fn minor(&self) -> u32
Trait Implementations§
Source§impl Clone for DeviceType
impl Clone for DeviceType
Source§fn clone(&self) -> DeviceType
fn clone(&self) -> DeviceType
Returns a duplicate 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 DeviceType
impl Debug for DeviceType
Source§impl Default for DeviceType
impl Default for DeviceType
Source§fn default() -> DeviceType
fn default() -> DeviceType
Returns the “default value” for a type. Read more
Source§impl Display for DeviceType
impl Display for DeviceType
Source§impl Ord for DeviceType
impl Ord for DeviceType
Source§impl PartialEq for DeviceType
impl PartialEq for DeviceType
Source§impl PartialOrd for DeviceType
impl PartialOrd for DeviceType
impl Copy for DeviceType
impl Eq for DeviceType
impl StructuralPartialEq for DeviceType
Auto Trait Implementations§
impl Freeze for DeviceType
impl RefUnwindSafe for DeviceType
impl Send for DeviceType
impl Sync for DeviceType
impl Unpin for DeviceType
impl UnwindSafe for DeviceType
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