Struct uefi_specs::uefi::common::EfiStatus
source · #[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 AsBytes
, 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)