pub enum BootError {
Uefi(Error),
StrError(StrError),
FsError(FsError),
SecureBootError(SecureBootError),
DevicePathError(DevicePathError),
LoadError(LoadError),
DriverError(DriverError),
DevicetreeError(DevicetreeError),
VarError(VarError),
UkiError(UkiError),
}
Expand description
An Error
resulting from the program.
Variants§
Uefi(Error)
An error with UEFI, or a service from the uefi
crate.
StrError(StrError)
A String
could not be converted into a CString
FsError(FsError)
An error occurred while performing filesystem operations.
SecureBootError(SecureBootError)
An error occurred while validating an image with Secure Boot.
DevicePathError(DevicePathError)
An error occurred while building a DevicePath
.
LoadError(LoadError)
An error occurred while loading an image.
DriverError(DriverError)
An error occurred while loading a driver.
DevicetreeError(DevicetreeError)
An error occurred while loading a devicetree.
VarError(VarError)
An error occurred while interacting with UEFI variables.
UkiError(UkiError)
The UKI executable could not be parsed for any reason.
Trait Implementations§
Source§impl Error for BootError
impl Error for BootError
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 From<DevicePathError> for BootError
impl From<DevicePathError> for BootError
Source§fn from(source: DevicePathError) -> Self
fn from(source: DevicePathError) -> Self
Converts to this type from the input type.
Source§impl From<DevicetreeError> for BootError
impl From<DevicetreeError> for BootError
Source§fn from(source: DevicetreeError) -> Self
fn from(source: DevicetreeError) -> Self
Converts to this type from the input type.
Source§impl From<DriverError> for BootError
impl From<DriverError> for BootError
Source§fn from(source: DriverError) -> Self
fn from(source: DriverError) -> Self
Converts to this type from the input type.
Source§impl From<SecureBootError> for BootError
impl From<SecureBootError> for BootError
Source§fn from(source: SecureBootError) -> Self
fn from(source: SecureBootError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for BootError
impl RefUnwindSafe for BootError
impl Send for BootError
impl Sync for BootError
impl Unpin for BootError
impl UnwindSafe for BootError
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