pub enum FormatImageError {
NotAnImage,
Version(u16),
ByteOrder,
OtherBuild,
Truncated,
TrailingBytes,
ChecksumMismatch,
InvalidField(&'static str),
Geometry(&'static str),
}Expand description
Why a serialized format image was rejected.
Variants§
NotAnImage
The bytes do not start with the format image magic.
Version(u16)
The image was written with another image layout version.
ByteOrder
The image was written on a target with the other byte order.
OtherBuild
The image was written by another engine build.
Truncated
The image ends before a part its header or body declares.
TrailingBytes
Bytes remain after the last part.
ChecksumMismatch
The body checksum does not match the header.
InvalidField(&'static str)
A state field holds a value its type cannot hold.
Geometry(&'static str)
Decoded sizes disagree with each other or with the layout this build allocates.
Trait Implementations§
Source§impl Clone for FormatImageError
impl Clone for FormatImageError
impl Copy for FormatImageError
Source§impl Debug for FormatImageError
impl Debug for FormatImageError
Source§impl Display for FormatImageError
impl Display for FormatImageError
impl Eq for FormatImageError
Source§impl Error for FormatImageError
impl Error for FormatImageError
1.30.0 · 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 FormatImageError
impl PartialEq for FormatImageError
impl StructuralPartialEq for FormatImageError
Auto Trait Implementations§
impl Freeze for FormatImageError
impl RefUnwindSafe for FormatImageError
impl Send for FormatImageError
impl Sync for FormatImageError
impl Unpin for FormatImageError
impl UnsafeUnpin for FormatImageError
impl UnwindSafe for FormatImageError
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