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<CoderError<FrontendError, BackendError>> for CoderError<FrontendError, BackendError>
impl<FrontendError: PartialEq, BackendError: PartialEq> PartialEq<CoderError<FrontendError, BackendError>> 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 ==.