Enum constriction::CoderError
source · pub enum CoderError<FrontendError, BackendError> {
Frontend(FrontendError),
Backend(BackendError),
}
Variants§
Implementations§
source§impl<FrontendError, BackendError> CoderError<FrontendError, BackendError>
impl<FrontendError, BackendError> CoderError<FrontendError, BackendError>
pub fn map_frontend<E>( self, f: impl Fn(FrontendError) -> E ) -> CoderError<E, BackendError>
pub fn map_backend<E>( self, f: impl Fn(BackendError) -> E ) -> CoderError<FrontendError, E>
Trait Implementations§
source§impl<FrontendError: Clone, BackendError: Clone> Clone for CoderError<FrontendError, BackendError>
impl<FrontendError: Clone, BackendError: Clone> Clone for CoderError<FrontendError, BackendError>
source§fn clone(&self) -> CoderError<FrontendError, BackendError>
fn clone(&self) -> CoderError<FrontendError, BackendError>
Returns a copy 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<FrontendError: Debug, BackendError: Debug> Debug for CoderError<FrontendError, BackendError>
impl<FrontendError: Debug, BackendError: Debug> Debug for CoderError<FrontendError, BackendError>
source§impl<BackendError: Display, FrontendError: Display> Display for CoderError<FrontendError, BackendError>
impl<BackendError: Display, FrontendError: Display> Display for CoderError<FrontendError, BackendError>
source§impl<FrontendError: Error + 'static, BackendError: Error + 'static> Error for CoderError<FrontendError, BackendError>
impl<FrontendError: Error + 'static, BackendError: Error + 'static> Error for CoderError<FrontendError, BackendError>
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<FrontendError, BackendError> From<BackendError> for CoderError<FrontendError, BackendError>
impl<FrontendError, BackendError> From<BackendError> for CoderError<FrontendError, BackendError>
source§impl<FrontendError: PartialEq, BackendError: PartialEq> PartialEq for CoderError<FrontendError, BackendError>
impl<FrontendError: PartialEq, BackendError: PartialEq> PartialEq for CoderError<FrontendError, BackendError>
source§fn eq(&self, other: &CoderError<FrontendError, BackendError>) -> bool
fn eq(&self, other: &CoderError<FrontendError, BackendError>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<FrontendError: Eq, BackendError: Eq> Eq for CoderError<FrontendError, BackendError>
impl<FrontendError, BackendError> StructuralEq for CoderError<FrontendError, BackendError>
impl<FrontendError, BackendError> StructuralPartialEq for CoderError<FrontendError, BackendError>
Auto Trait Implementations§
impl<FrontendError, BackendError> RefUnwindSafe for CoderError<FrontendError, BackendError>where
BackendError: RefUnwindSafe,
FrontendError: RefUnwindSafe,
impl<FrontendError, BackendError> Send for CoderError<FrontendError, BackendError>
impl<FrontendError, BackendError> Sync for CoderError<FrontendError, BackendError>
impl<FrontendError, BackendError> Unpin for CoderError<FrontendError, BackendError>
impl<FrontendError, BackendError> UnwindSafe for CoderError<FrontendError, BackendError>where
BackendError: UnwindSafe,
FrontendError: 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