pub enum PollStatus {
QueueEmpty,
WaitSucceeded,
Poll,
}
Expand description
Status of device poll operation.
Variants§
QueueEmpty
There are no active submissions in flight as of the beginning of the poll call. Other submissions may have been queued on other threads during the call.
This implies that the given Wait was satisfied before the timeout.
WaitSucceeded
The requested Wait was satisfied before the timeout.
Poll
This was a poll.
Implementations§
source§impl PollStatus
impl PollStatus
sourcepub fn is_queue_empty(&self) -> bool
pub fn is_queue_empty(&self) -> bool
Returns true if the result is Self::QueueEmpty
`.
sourcepub fn wait_finished(&self) -> bool
pub fn wait_finished(&self) -> bool
Returns true if the result is either Self::WaitSucceeded
or Self::QueueEmpty
.
Trait Implementations§
source§impl Debug for PollStatus
impl Debug for PollStatus
source§impl PartialEq for PollStatus
impl PartialEq for PollStatus
impl Eq for PollStatus
impl StructuralPartialEq for PollStatus
Auto Trait Implementations§
impl Freeze for PollStatus
impl RefUnwindSafe for PollStatus
impl Send for PollStatus
impl Sync for PollStatus
impl Unpin for PollStatus
impl UnwindSafe for PollStatus
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