#[non_exhaustive]pub enum PollNextArgsError<B: Backend> {
BackendError(B::Error),
DecodeError(BoxDynError),
}Expand description
A wrapper that allows a backend to be used as a stream of tasks, without needing to know the concrete backend type at compile time.
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.
BackendError(B::Error)
The backend produced an error while polling for the next task.
DecodeError(BoxDynError)
The backend produced a task, but the task’s arguments could not be decoded.
Trait Implementations§
Source§impl<B: Backend> Display for PollNextArgsError<B>
impl<B: Backend> Display for PollNextArgsError<B>
Source§impl<B: Backend> Error for PollNextArgsError<B>
impl<B: Backend> Error for PollNextArgsError<B>
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()
Auto Trait Implementations§
impl<B> !RefUnwindSafe for PollNextArgsError<B>
impl<B> !UnwindSafe for PollNextArgsError<B>
impl<B> Freeze for PollNextArgsError<B>
impl<B> Send for PollNextArgsError<B>
impl<B> Sync for PollNextArgsError<B>
impl<B> Unpin for PollNextArgsError<B>
impl<B> UnsafeUnpin for PollNextArgsError<B>
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