pub enum OtaError {
NoHeader,
Truncated(Truncated),
Invalid(String),
}Expand description
An OTA file did not parse.
Variants§
NoHeader
No OTA header in the first MAX_PREFIX bytes.
Truncated(Truncated)
The header is cut short.
Invalid(String)
The header’s sizes do not add up.
Trait Implementations§
impl Eq for OtaError
Source§impl Error for OtaError
impl Error for OtaError
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()
impl StructuralPartialEq for OtaError
Auto Trait Implementations§
impl Freeze for OtaError
impl RefUnwindSafe for OtaError
impl Send for OtaError
impl Sync for OtaError
impl Unpin for OtaError
impl UnsafeUnpin for OtaError
impl UnwindSafe for OtaError
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