#[non_exhaustive]pub enum PollStatus {
Nothing,
Destroyed,
GotEvent,
GotMessage,
GotAll,
}Expand description
Information from a DevicePoller about which information is available
from the kernel, to be passed to Device::handle_status.
As this is a representation of what data is available and not used for requesting data manually, it should not be constructed directly.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Implementations§
Source§impl PollStatus
impl PollStatus
Trait Implementations§
Source§impl Clone for PollStatus
impl Clone for PollStatus
Source§fn clone(&self) -> PollStatus
fn clone(&self) -> PollStatus
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PollStatus
impl Debug for PollStatus
Source§impl Hash for PollStatus
impl Hash for PollStatus
Source§impl PartialEq for PollStatus
impl PartialEq for PollStatus
impl Copy 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 UnsafeUnpin 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