pub enum UkiError {
Io(Error),
PortableExecutableError,
MissingSection(String),
UnicodeError(String),
NoName,
}Expand description
Errors that can occur when parsing UKI files.
Variants§
Io(Error)
IO Error while reading or seeking
PortableExecutableError
The file is not a valid Portable Executable (PE/EFI) format
MissingSection(String)
A required PE section is missing from the UKI
UnicodeError(String)
A PE section contains invalid UTF-8
NoName
The .osrel section lacks name information
Trait Implementations§
Source§impl Error for UkiError
impl Error for UkiError
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 !RefUnwindSafe for UkiError
impl !UnwindSafe for UkiError
impl Freeze for UkiError
impl Send for UkiError
impl Sync for UkiError
impl Unpin for UkiError
impl UnsafeUnpin for UkiError
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