pub struct DevicePoller { /* private fields */ }Expand description
An object used for polling the status of the event and message queues in the
kernel without borrowing the Device, created by Device::get_poller.
Implementations§
Source§impl DevicePoller
impl DevicePoller
Sourcepub fn poll(&self, timeout: PollTimeout) -> Result<PollStatus>
pub fn poll(&self, timeout: PollTimeout) -> Result<PollStatus>
Poll the kernel queues for the Device. The returned PollStatus
must be passed to Device::handle_status to dequeue the events or
messages that the status may indicate are present.
Trait Implementations§
Source§impl Debug for DevicePoller
impl Debug for DevicePoller
Source§impl From<DevicePoller> for AsyncDevicePoller
impl From<DevicePoller> for AsyncDevicePoller
Source§fn from(poller: DevicePoller) -> AsyncDevicePoller
fn from(poller: DevicePoller) -> AsyncDevicePoller
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DevicePoller
impl RefUnwindSafe for DevicePoller
impl Send for DevicePoller
impl Sync for DevicePoller
impl Unpin for DevicePoller
impl UnsafeUnpin for DevicePoller
impl UnwindSafe for DevicePoller
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