pub struct Udev { /* private fields */ }
Expand description
Wrapper for libudev
’s context.
Implementations§
Source§impl Udev
impl Udev
Sourcepub fn iterate_input_devices<F>(&self, f: F)
pub fn iterate_input_devices<F>(&self, f: F)
Iterates over connected input event devices and pass results to given handler. Panics if something goes wrong.
Sourcepub fn iterate_output_devices<F: FnMut(&Path, &Device<'_>)>(&self, f: F)
pub fn iterate_output_devices<F: FnMut(&Path, &Device<'_>)>(&self, f: F)
Iterates over connected output DRM devices and pass results to given handler. Panics if something goes wrong.
Auto Trait Implementations§
impl Freeze for Udev
impl RefUnwindSafe for Udev
impl !Send for Udev
impl !Sync for Udev
impl Unpin for Udev
impl UnwindSafe for Udev
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