pub enum KernelError {
Io(Error),
InvalidImage {
path: PathBuf,
reason: String,
},
ImageTooSmall {
size: u64,
min_size: u64,
},
HashMismatch {
expected: [u8; 32],
actual: [u8; 32],
},
DockerBuildFailed(String),
InitramfsBuildFailed(String),
CompressionFailed(String),
MissingConfig(String),
InvalidConfig(String),
NoKernelSegment,
}Expand description
Errors that can occur during kernel building, verification, or embedding.
Variants§
Io(Error)
I/O error reading or writing kernel artifacts.
InvalidImage
The file at the given path is not a valid kernel image.
ImageTooSmall
The kernel image is too small to contain required headers.
HashMismatch
SHA3-256 hash of extracted kernel does not match the stored hash.
DockerBuildFailed(String)
Docker is not available or the build failed.
InitramfsBuildFailed(String)
The initramfs archive could not be built.
CompressionFailed(String)
Compression or decompression failed.
MissingConfig(String)
A required configuration option is missing.
InvalidConfig(String)
The kernel config string is invalid or missing required options.
NoKernelSegment
No KERNEL_SEG found in the RVF store.
Trait Implementations§
Source§impl Debug for KernelError
impl Debug for KernelError
Source§impl Display for KernelError
impl Display for KernelError
Source§impl Error for KernelError
impl Error for KernelError
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()
Auto Trait Implementations§
impl Freeze for KernelError
impl !RefUnwindSafe for KernelError
impl Send for KernelError
impl Sync for KernelError
impl Unpin for KernelError
impl !UnwindSafe for KernelError
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