#[non_exhaustive]pub enum PollRequestError {
WrongOwner,
WrongKind,
AlreadyCompleted,
StaleGeneration,
RecoveryFailed,
}Expand description
Error returned when a request is polled through the wrong handle or after its terminal state.
Unlike RequestPoll::Ready, this is not a transfer terminal state for
the request payload. Implementations must not report a terminal
RequestPoll::Ready error until the controller is no longer accessing
the transaction buffer.
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.
WrongOwner
WrongKind
AlreadyCompleted
StaleGeneration
RecoveryFailed
Recovery could not be reported through the requested handle.
Safe host implementations must still quiesce the hardware before any request object that borrows caller memory can be dropped. This variant is diagnostic only; it must not mean DMA is still active.
Trait Implementations§
Source§impl Clone for PollRequestError
impl Clone for PollRequestError
Source§fn clone(&self) -> PollRequestError
fn clone(&self) -> PollRequestError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PollRequestError
Source§impl Debug for PollRequestError
impl Debug for PollRequestError
Source§impl Display for PollRequestError
impl Display for PollRequestError
impl Eq for PollRequestError
Source§impl Error for PollRequestError
impl Error for PollRequestError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for PollRequestError
impl PartialEq for PollRequestError
Source§fn eq(&self, other: &PollRequestError) -> bool
fn eq(&self, other: &PollRequestError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PollRequestError
Auto Trait Implementations§
impl Freeze for PollRequestError
impl RefUnwindSafe for PollRequestError
impl Send for PollRequestError
impl Sync for PollRequestError
impl Unpin for PollRequestError
impl UnsafeUnpin for PollRequestError
impl UnwindSafe for PollRequestError
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