pub enum AssembleError {
ImageTooSmall {
image: ImageKind,
size: usize,
},
NotArm64Image {
image: ImageKind,
},
ZeroImageSize {
image: ImageKind,
},
ShimTooLarge {
len: u64,
payload_offset: u64,
},
KernelLargerThanImageSize {
len: u64,
image_size: u64,
},
EmptyInitrd,
InvalidAlignment(u64),
SizeOverflow(&'static str),
}Variants§
ImageTooSmall
NotArm64Image
ZeroImageSize
ShimTooLarge
KernelLargerThanImageSize
EmptyInitrd
InvalidAlignment(u64)
SizeOverflow(&'static str)
Trait Implementations§
Source§impl Clone for AssembleError
impl Clone for AssembleError
Source§fn clone(&self) -> AssembleError
fn clone(&self) -> AssembleError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AssembleError
impl Debug for AssembleError
Source§impl Display for AssembleError
impl Display for AssembleError
impl Eq for AssembleError
Source§impl Error for AssembleError
impl Error for AssembleError
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 AssembleError
impl PartialEq for AssembleError
impl StructuralPartialEq for AssembleError
Auto Trait Implementations§
impl Freeze for AssembleError
impl RefUnwindSafe for AssembleError
impl Send for AssembleError
impl Sync for AssembleError
impl Unpin for AssembleError
impl UnsafeUnpin for AssembleError
impl UnwindSafe for AssembleError
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