#[non_exhaustive]pub enum PollResult {
Message(Envelope),
PinEvent(PinEvent),
LostMessages(u32),
StateChange,
}Expand description
A return result of Device::handle_status, containing
about a single message or event was returned from the kernel.
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.
Message(Envelope)
The device received a Message.
PinEvent(PinEvent)
A monitored pin changed state.
LostMessages(u32)
The message queue was full and a number of messages were received and lost. To avoid this, make sure to poll as frequently as possible.
StateChange
The device state changed. Usually this means the device was configured, unconfigured, or the physical address changed. If the caller has cached any properties like logical address or physical address, these values should be refreshed.
Trait Implementations§
Source§impl Clone for PollResult
impl Clone for PollResult
Source§fn clone(&self) -> PollResult
fn clone(&self) -> PollResult
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 PollResult
impl Debug for PollResult
Auto Trait Implementations§
impl Freeze for PollResult
impl RefUnwindSafe for PollResult
impl Send for PollResult
impl Sync for PollResult
impl Unpin for PollResult
impl UnsafeUnpin for PollResult
impl UnwindSafe for PollResult
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