#[non_exhaustive]pub enum DurableError<PollError, CodecError> {
PollNextError(PollError),
CodecError(CodecError),
}Expand description
Error type that combines backend errors and service errors
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.
PollNextError(PollError)
Error originating from the the poll
CodecError(CodecError)
Error originating from the decoding of the task
Trait Implementations§
Source§impl<PollError, CodecError> Display for DurableError<PollError, CodecError>
impl<PollError, CodecError> Display for DurableError<PollError, CodecError>
Source§impl<PollError, CodecError> Error for DurableError<PollError, CodecError>
impl<PollError, CodecError> Error for DurableError<PollError, CodecError>
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<PollError, CodecError> Freeze for DurableError<PollError, CodecError>
impl<PollError, CodecError> RefUnwindSafe for DurableError<PollError, CodecError>where
PollError: RefUnwindSafe,
CodecError: RefUnwindSafe,
impl<PollError, CodecError> Send for DurableError<PollError, CodecError>
impl<PollError, CodecError> Sync for DurableError<PollError, CodecError>
impl<PollError, CodecError> Unpin for DurableError<PollError, CodecError>
impl<PollError, CodecError> UnsafeUnpin for DurableError<PollError, CodecError>where
PollError: UnsafeUnpin,
CodecError: UnsafeUnpin,
impl<PollError, CodecError> UnwindSafe for DurableError<PollError, CodecError>where
PollError: UnwindSafe,
CodecError: UnwindSafe,
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