pub struct DevfsSelector(pub Devfs);
Expand description
Identifies a device backed by a hardware driver protocol in devfs.
Tuple Fields§
§0: Devfs
Implementations§
Source§impl DevfsSelector
impl DevfsSelector
Sourcepub fn relative_path(&self) -> Utf8PathBuf
pub fn relative_path(&self) -> Utf8PathBuf
Returns the path for this device relative to the /dev/class directory root.
Sourcepub fn device_type(&self) -> Type
pub fn device_type(&self) -> Type
Returns the type of this device.
Trait Implementations§
Source§impl Clone for DevfsSelector
impl Clone for DevfsSelector
Source§fn clone(&self) -> DevfsSelector
fn clone(&self) -> DevfsSelector
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 DevfsSelector
impl Debug for DevfsSelector
Source§impl Display for DevfsSelector
impl Display for DevfsSelector
Source§impl From<Devfs> for DevfsSelector
impl From<Devfs> for DevfsSelector
Source§impl From<DevfsSelector> for DeviceSelector
impl From<DevfsSelector> for DeviceSelector
Source§fn from(value: DevfsSelector) -> Self
fn from(value: DevfsSelector) -> Self
Converts to this type from the input type.
Source§impl Hash for DevfsSelector
impl Hash for DevfsSelector
Source§impl Ord for DevfsSelector
impl Ord for DevfsSelector
Source§fn cmp(&self, other: &DevfsSelector) -> Ordering
fn cmp(&self, other: &DevfsSelector) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for DevfsSelector
impl PartialEq for DevfsSelector
Source§impl PartialOrd for DevfsSelector
impl PartialOrd for DevfsSelector
Source§impl TryFrom<DeviceSelector> for DevfsSelector
impl TryFrom<DeviceSelector> for DevfsSelector
impl Eq for DevfsSelector
impl StructuralPartialEq for DevfsSelector
Auto Trait Implementations§
impl Freeze for DevfsSelector
impl RefUnwindSafe for DevfsSelector
impl Send for DevfsSelector
impl Sync for DevfsSelector
impl Unpin for DevfsSelector
impl UnwindSafe for DevfsSelector
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§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
)