#[repr(transparent)]pub struct EfiStatus(pub u64);
Expand description
UEFI spec Appendix D - Status Codes
Note that EFI_STATUS is encoded as a UINTN
in UEFI, so it is either 32
or 64 bits wide (with the error bit always being the high bit). This
enum is defined as 64 bits wide so that it does not lose any (invalid)
high bits when taking a guest-provided 64-bit value.
However, this type is not intended for direct sharing with the guest, so
it does not derive IntoBytes
, etc. To be clear about intent when using
this value for communication with the guest via shared memory, use
EfiStatus64
instead. If you are implementing a legacy protocol that
does not preserve the error bit, use
EfiStatus64NoErrorBit
.
Tuple Fields§
§0: u64
Implementations§
Source§impl EfiStatus
impl EfiStatus
pub const SUCCESS: EfiStatus
pub const LOAD_ERROR: EfiStatus
pub const INVALID_PARAMETER: EfiStatus
pub const UNSUPPORTED: EfiStatus
pub const BAD_BUFFER_SIZE: EfiStatus
pub const BUFFER_TOO_SMALL: EfiStatus
pub const NOT_READY: EfiStatus
pub const DEVICE_ERROR: EfiStatus
pub const WRITE_PROTECTED: EfiStatus
pub const OUT_OF_RESOURCES: EfiStatus
pub const VOLUME_CORRUPTED: EfiStatus
pub const VOLUME_FULL: EfiStatus
pub const NO_MEDIA: EfiStatus
pub const MEDIA_CHANGED: EfiStatus
pub const NOT_FOUND: EfiStatus
pub const ACCESS_DENIED: EfiStatus
pub const NO_RESPONSE: EfiStatus
pub const NO_MAPPING: EfiStatus
pub const TIMEOUT: EfiStatus
pub const NOT_STARTED: EfiStatus
pub const ALREADY_STARTED: EfiStatus
pub const ABORTED: EfiStatus
pub const ICMP_ERROR: EfiStatus
pub const TFTP_ERROR: EfiStatus
pub const PROTOCOL_ERROR: EfiStatus
pub const INCOMPATIBLE_VERSION: EfiStatus
pub const SECURITY_VIOLATION: EfiStatus
pub const CRC_ERROR: EfiStatus
pub const END_OF_MEDIA: EfiStatus
pub const END_OF_FILE: EfiStatus
pub const INVALID_LANGUAGE: EfiStatus
pub const COMPROMISED_DATA: EfiStatus
pub const IP_ADDRESS_CONFLICT: EfiStatus
pub const HTTP_ERROR: EfiStatus
Trait Implementations§
Source§impl From<EfiStatus> for EfiStatus64
impl From<EfiStatus> for EfiStatus64
Source§impl From<EfiStatus> for EfiStatus64NoErrorBit
impl From<EfiStatus> for EfiStatus64NoErrorBit
Source§impl From<EfiStatus64> for EfiStatus
impl From<EfiStatus64> for EfiStatus
Source§fn from(value: EfiStatus64) -> Self
fn from(value: EfiStatus64) -> Self
Converts to this type from the input type.
Source§impl From<EfiStatus64NoErrorBit> for EfiStatus
impl From<EfiStatus64NoErrorBit> for EfiStatus
Source§fn from(value: EfiStatus64NoErrorBit) -> Self
fn from(value: EfiStatus64NoErrorBit) -> Self
Converts to this type from the input type.
Source§impl Ord for EfiStatus
impl Ord for EfiStatus
Source§impl PartialOrd for EfiStatus
impl PartialOrd for EfiStatus
impl Copy for EfiStatus
impl Eq for EfiStatus
impl StructuralPartialEq for EfiStatus
Auto Trait Implementations§
impl Freeze for EfiStatus
impl RefUnwindSafe for EfiStatus
impl Send for EfiStatus
impl Sync for EfiStatus
impl Unpin for EfiStatus
impl UnwindSafe for EfiStatus
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