pub enum BackendError<CompressedBackendError, RemaindersBackendError> {
Compressed(CompressedBackendError),
Remainders(RemaindersBackendError),
}Expand description
Error type for backend errors in a ChainCoder.
Variants§
Trait Implementations§
Source§impl<CompressedBackendError: Debug, RemaindersBackendError: Debug> Debug for BackendError<CompressedBackendError, RemaindersBackendError>
impl<CompressedBackendError: Debug, RemaindersBackendError: Debug> Debug for BackendError<CompressedBackendError, RemaindersBackendError>
Source§impl<CompressedBackendError: Display, RemaindersBackendError: Display> Display for BackendError<CompressedBackendError, RemaindersBackendError>
impl<CompressedBackendError: Display, RemaindersBackendError: Display> Display for BackendError<CompressedBackendError, RemaindersBackendError>
Source§impl<CompressedBackendError: Error + 'static, RemaindersBackendError: Error + 'static> Error for BackendError<CompressedBackendError, RemaindersBackendError>
Available on crate feature std only.
impl<CompressedBackendError: Error + 'static, RemaindersBackendError: Error + 'static> Error for BackendError<CompressedBackendError, RemaindersBackendError>
Available on crate feature
std only.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<CompressedBackendError: PartialEq, RemaindersBackendError: PartialEq> PartialEq for BackendError<CompressedBackendError, RemaindersBackendError>
impl<CompressedBackendError: PartialEq, RemaindersBackendError: PartialEq> PartialEq for BackendError<CompressedBackendError, RemaindersBackendError>
Source§fn eq(
&self,
other: &BackendError<CompressedBackendError, RemaindersBackendError>,
) -> bool
fn eq( &self, other: &BackendError<CompressedBackendError, RemaindersBackendError>, ) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<CompressedBackendError: Eq, RemaindersBackendError: Eq> Eq for BackendError<CompressedBackendError, RemaindersBackendError>
impl<CompressedBackendError, RemaindersBackendError> StructuralPartialEq for BackendError<CompressedBackendError, RemaindersBackendError>
Auto Trait Implementations§
impl<CompressedBackendError, RemaindersBackendError> Freeze for BackendError<CompressedBackendError, RemaindersBackendError>
impl<CompressedBackendError, RemaindersBackendError> RefUnwindSafe for BackendError<CompressedBackendError, RemaindersBackendError>where
CompressedBackendError: RefUnwindSafe,
RemaindersBackendError: RefUnwindSafe,
impl<CompressedBackendError, RemaindersBackendError> Send for BackendError<CompressedBackendError, RemaindersBackendError>
impl<CompressedBackendError, RemaindersBackendError> Sync for BackendError<CompressedBackendError, RemaindersBackendError>
impl<CompressedBackendError, RemaindersBackendError> Unpin for BackendError<CompressedBackendError, RemaindersBackendError>
impl<CompressedBackendError, RemaindersBackendError> UnwindSafe for BackendError<CompressedBackendError, RemaindersBackendError>where
CompressedBackendError: UnwindSafe,
RemaindersBackendError: 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