#[non_exhaustive]pub enum RebuildError {
Size(usize),
Chip(ChipError),
NoFactory(Chip),
UnknownBootPage(Digest),
Factory(&'static str),
}Expand description
Why no flashable image could be rebuilt.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Size(usize)
The input is not exactly layout::IMAGE_SIZE bytes.
Chip(ChipError)
The image names no supported chip generation.
NoFactory(Chip)
The catalog has no build match and no default for this chip.
UnknownBootPage(Digest)
The boot page is neither the factory’s stored page nor the boot mirror of a drive read, so its stored form is unknown.
Factory(&'static str)
Factory contents of the named range have the wrong length or form.
Trait Implementations§
Source§impl Clone for RebuildError
impl Clone for RebuildError
Source§impl CodedError for RebuildError
Available on crate feature oem only.
impl CodedError for RebuildError
Available on crate feature
oem only.Source§impl Debug for RebuildError
impl Debug for RebuildError
Source§impl Display for RebuildError
impl Display for RebuildError
impl Eq for RebuildError
Source§impl Error for RebuildError
impl Error for RebuildError
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 PartialEq for RebuildError
impl PartialEq for RebuildError
impl StructuralPartialEq for RebuildError
Auto Trait Implementations§
impl Freeze for RebuildError
impl RefUnwindSafe for RebuildError
impl Send for RebuildError
impl Sync for RebuildError
impl Unpin for RebuildError
impl UnsafeUnpin for RebuildError
impl UnwindSafe for RebuildError
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