pub struct UdevQueue { /* private fields */ }Expand description
Represents the current event queue in the udev daemon.
Implementations§
Source§impl UdevQueue
impl UdevQueue
Sourcepub fn create<Q: Into<UdevEntryList>>(
udev: Arc<Udev>,
queue_list: Q,
fd: i32,
) -> Self
pub fn create<Q: Into<UdevEntryList>>( udev: Arc<Udev>, queue_list: Q, fd: i32, ) -> Self
Creates a new UdevQueue from the provided parameters.
Sourcepub const fn queue_list(&self) -> &UdevList
pub const fn queue_list(&self) -> &UdevList
Gets a reference to the queue list UdevList.
Sourcepub fn queue_list_mut(&mut self) -> &mut UdevList
pub fn queue_list_mut(&mut self) -> &mut UdevList
Gets a mutable reference to the queue list UdevList.
Sourcepub fn set_queue_list<Q: Into<UdevEntryList>>(&mut self, queue_list: Q)
pub fn set_queue_list<Q: Into<UdevEntryList>>(&mut self, queue_list: Q)
Sets the queue list UdevEntryList.
Sourcepub fn with_queue_list<Q: Into<UdevEntryList>>(self, queue_list: Q) -> Self
pub fn with_queue_list<Q: Into<UdevEntryList>>(self, queue_list: Q) -> Self
Builder function that sets the queue list UdevEntryList.
Sourcepub fn with_fd(self, val: i32) -> Self
pub fn with_fd(self, val: i32) -> Self
Builder function that sets the UdevQueue file descriptor.
Sourcepub fn get_fd(&mut self) -> Result<i32>
pub fn get_fd(&mut self) -> Result<i32>
Gets a file descriptor to watch for a queue to become empty.
Sourcepub fn udev_is_active(&self) -> bool
pub fn udev_is_active(&self) -> bool
Checks if Udev is active on the system.
Sourcepub fn queue_is_empty(&self) -> bool
pub fn queue_is_empty(&self) -> bool
Gets whether UdevQueue is currently processing any events.
Trait Implementations§
impl StructuralPartialEq for UdevQueue
Auto Trait Implementations§
impl Freeze for UdevQueue
impl RefUnwindSafe for UdevQueue
impl Send for UdevQueue
impl Sync for UdevQueue
impl Unpin for UdevQueue
impl UnwindSafe for UdevQueue
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