pub enum UkiError {
PortableExecutableError,
MissingSection(&'static str),
UnicodeError(&'static str),
NoName,
}Expand description
Errors that can occur when parsing UKI files.
Variants§
PortableExecutableError
The file is not a valid Portable Executable (PE/EFI) format
MissingSection(&'static str)
A required PE section is missing from the UKI
UnicodeError(&'static str)
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
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()
impl StructuralPartialEq for UkiError
Auto Trait Implementations§
impl Freeze for UkiError
impl RefUnwindSafe for UkiError
impl Send for UkiError
impl Sync for UkiError
impl Unpin for UkiError
impl UnwindSafe 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