Skip to main content

CodedError

Trait CodedError 

Source
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§

Source

fn code(&self) -> &'static str

Stable identifier, such as mediatek.receiver.changed.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl CodedError for ChipError

Available on crate feature image only.
Source§

impl CodedError for CmacError

Available on crate feature image only.
Source§

impl CodedError for mediatek_optical::envelope::Error

Available on crate features enc and image only.
Source§

impl CodedError for mediatek_optical::receiver::layout::Error

Available on crate features drive and enc and image only.
Source§

impl CodedError for LengthError

Available on crate feature enc only.
Source§

impl CodedError for PrepareError

Available on crate feature image only.
Source§

impl CodedError for RebuildError

Available on crate feature oem only.
Source§

impl CodedError for UnknownChip

Source§

impl<E> CodedError for mediatek_optical::drive::Error<E>

Available on crate feature drive only.
Source§

impl<E> CodedError for mediatek_optical::receiver::Error<E>

Available on crate feature drive only.
Source§

impl<E> CodedError for mediatek_optical::receiver::reference::Error<E>

Available on crate features drive and enc and image only.
Source§

impl<E> CodedError for mediatek_optical::recovery::Error<E>

Available on crate features drive and enc and image only.
Source§

impl<E> CodedError for ExecuteError<E>

Available on crate features drive and enc and image only.
Source§

impl<E> CodedError for FlashError<E>

Available on crate features drive and image only.
Source§

impl<E> CodedError for StartupError<E>

Available on crate features drive and image only.