pub struct Device { /* private fields */ }Implementations§
Source§impl Device
impl Device
pub fn from_syspath(path: &Path) -> Result<Device>
pub fn parent_with_subsystem( &self, parent_subsystem: &str, ) -> Result<Option<&Device>>
pub fn parent_with_subsystem_devtype( &self, parent_subsystem: &str, devtype: &str, ) -> Result<Option<&Device>>
pub fn property_value(&self, key: &str) -> Option<&OsStr>
pub fn attribute_value(&self, key: &str) -> Option<&OsStr>
pub fn devnode(&self) -> Option<&Path>
pub fn syspath(&self) -> &Path
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Device
impl RefUnwindSafe for Device
impl Send for Device
impl Sync for Device
impl Unpin for Device
impl UnwindSafe for Device
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