1#[cfg(feature = "expose_implementation_details")]
5pub use efivar::Error as EfivarError;
6
7#[cfg(feature = "expose_implementation_details")]
9pub use efi_loadopt::DecodeError as LoadOptionDecodingError;
10
11#[derive(Debug, thiserror::Error)]
13pub enum EnumerateLoadOptionsError {
14 #[error("low-level error: {0}")]
16 Efivar(efivar::Error),
17}
18
19#[derive(Debug, thiserror::Error)]
21pub enum GetLoadOptionError {
22 #[error("low-level error: {0}")]
24 Efivar(efivar::Error),
25 #[error("load option decoding error: {0}")]
27 LoadOptionDecoding(efi_loadopt::DecodeError),
28}
29
30#[derive(Debug, thiserror::Error)]
32pub enum SetBootNextError {
33 #[error("low-level error: {0}")]
35 Efivar(efivar::Error),
36}
37
38#[derive(Debug, thiserror::Error)]
40pub enum GetBootNextError {
41 #[error("low-level error: {0}")]
43 Efivar(efivar::Error),
44 #[error("boot next value is not valid")]
46 InvalidValue,
47}