pub trait CodedError {
// Required method
fn code(&self) -> &'static str;
}Expand description
A typed error with a stable, namespaced identifier.
Codes contain no runtime values. Match the error variant for parameters;
Display is diagnostic prose and may change. Wrapper errors retain their
own stage code; their typed causes describe the underlying failure.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementors§
impl CodedError for ChipError
Available on crate feature
image only.impl CodedError for CmacError
Available on crate feature
image only.impl CodedError for mediatek_optical::envelope::Error
Available on crate features
enc and image only.impl CodedError for mediatek_optical::receiver::layout::Error
Available on crate features
drive and enc and image only.impl CodedError for LengthError
Available on crate feature
enc only.impl CodedError for PrepareError
Available on crate feature
image only.impl CodedError for RebuildError
Available on crate feature
oem only.impl CodedError for UnknownChip
impl<E> CodedError for mediatek_optical::drive::Error<E>
Available on crate feature
drive only.impl<E> CodedError for mediatek_optical::receiver::Error<E>
Available on crate feature
drive only.impl<E> CodedError for mediatek_optical::receiver::reference::Error<E>
Available on crate features
drive and enc and image only.impl<E> CodedError for mediatek_optical::recovery::Error<E>
Available on crate features
drive and enc and image only.impl<E> CodedError for ExecuteError<E>
Available on crate features
drive and enc and image only.impl<E> CodedError for FlashError<E>
Available on crate features
drive and image only.impl<E> CodedError for StartupError<E>
Available on crate features
drive and image only.