#[repr(transparent)]pub struct Status(pub usize);
Expand description
UEFI uses status codes in order to report successes, errors, and warnings.
The spec allows implementation-specific status codes, so the Status
constants are not a comprehensive list of all possible values.
Tuple Fields§
§0: usize
Implementations§
source§impl Status
impl Status
sourcepub const WARN_UNKNOWN_GLYPH: Status = Status(1)
pub const WARN_UNKNOWN_GLYPH: Status = Status(1)
The string contained characters that could not be rendered and were skipped.
sourcepub const WARN_DELETE_FAILURE: Status = Status(2)
pub const WARN_DELETE_FAILURE: Status = Status(2)
The handle was closed, but the file was not deleted.
sourcepub const WARN_WRITE_FAILURE: Status = Status(3)
pub const WARN_WRITE_FAILURE: Status = Status(3)
The handle was closed, but the data to the file was not flushed properly.
sourcepub const WARN_BUFFER_TOO_SMALL: Status = Status(4)
pub const WARN_BUFFER_TOO_SMALL: Status = Status(4)
The resulting buffer was too small, and the data was truncated.
sourcepub const WARN_STALE_DATA: Status = Status(5)
pub const WARN_STALE_DATA: Status = Status(5)
The data has not been updated within the timeframe set by local policy.
sourcepub const WARN_FILE_SYSTEM: Status = Status(6)
pub const WARN_FILE_SYSTEM: Status = Status(6)
The resulting buffer contains UEFI-compliant file system.
sourcepub const WARN_RESET_REQUIRED: Status = Status(7)
pub const WARN_RESET_REQUIRED: Status = Status(7)
The operation will be processed across a system reset.
sourcepub const LOAD_ERROR: Status = Status(Self::ERROR_BIT | 1)
pub const LOAD_ERROR: Status = Status(Self::ERROR_BIT | 1)
The image failed to load.
sourcepub const INVALID_PARAMETER: Status = Status(Self::ERROR_BIT | 2)
pub const INVALID_PARAMETER: Status = Status(Self::ERROR_BIT | 2)
A parameter was incorrect.
sourcepub const UNSUPPORTED: Status = Status(Self::ERROR_BIT | 3)
pub const UNSUPPORTED: Status = Status(Self::ERROR_BIT | 3)
The operation is not supported.
sourcepub const BAD_BUFFER_SIZE: Status = Status(Self::ERROR_BIT | 4)
pub const BAD_BUFFER_SIZE: Status = Status(Self::ERROR_BIT | 4)
The buffer was not the proper size for the request.
sourcepub const BUFFER_TOO_SMALL: Status = Status(Self::ERROR_BIT | 5)
pub const BUFFER_TOO_SMALL: Status = Status(Self::ERROR_BIT | 5)
The buffer is not large enough to hold the requested data. The required buffer size is returned in the appropriate parameter.
sourcepub const NOT_READY: Status = Status(Self::ERROR_BIT | 6)
pub const NOT_READY: Status = Status(Self::ERROR_BIT | 6)
There is no data pending upon return.
sourcepub const DEVICE_ERROR: Status = Status(Self::ERROR_BIT | 7)
pub const DEVICE_ERROR: Status = Status(Self::ERROR_BIT | 7)
The physical device reported an error while attempting the operation.
sourcepub const WRITE_PROTECTED: Status = Status(Self::ERROR_BIT | 8)
pub const WRITE_PROTECTED: Status = Status(Self::ERROR_BIT | 8)
The device cannot be written to.
sourcepub const OUT_OF_RESOURCES: Status = Status(Self::ERROR_BIT | 9)
pub const OUT_OF_RESOURCES: Status = Status(Self::ERROR_BIT | 9)
A resource has run out.
sourcepub const VOLUME_CORRUPTED: Status = Status(Self::ERROR_BIT | 10)
pub const VOLUME_CORRUPTED: Status = Status(Self::ERROR_BIT | 10)
An inconstency was detected on the file system.
sourcepub const VOLUME_FULL: Status = Status(Self::ERROR_BIT | 11)
pub const VOLUME_FULL: Status = Status(Self::ERROR_BIT | 11)
There is no more space on the file system.
sourcepub const NO_MEDIA: Status = Status(Self::ERROR_BIT | 12)
pub const NO_MEDIA: Status = Status(Self::ERROR_BIT | 12)
The device does not contain any medium to perform the operation.
sourcepub const MEDIA_CHANGED: Status = Status(Self::ERROR_BIT | 13)
pub const MEDIA_CHANGED: Status = Status(Self::ERROR_BIT | 13)
The medium in the device has changed since the last access.
sourcepub const ACCESS_DENIED: Status = Status(Self::ERROR_BIT | 15)
pub const ACCESS_DENIED: Status = Status(Self::ERROR_BIT | 15)
Access was denied.
sourcepub const NO_RESPONSE: Status = Status(Self::ERROR_BIT | 16)
pub const NO_RESPONSE: Status = Status(Self::ERROR_BIT | 16)
The server was not found or did not respond to the request.
sourcepub const NO_MAPPING: Status = Status(Self::ERROR_BIT | 17)
pub const NO_MAPPING: Status = Status(Self::ERROR_BIT | 17)
A mapping to a device does not exist.
sourcepub const NOT_STARTED: Status = Status(Self::ERROR_BIT | 19)
pub const NOT_STARTED: Status = Status(Self::ERROR_BIT | 19)
The protocol has not been started.
sourcepub const ALREADY_STARTED: Status = Status(Self::ERROR_BIT | 20)
pub const ALREADY_STARTED: Status = Status(Self::ERROR_BIT | 20)
The protocol has already been started.
sourcepub const ICMP_ERROR: Status = Status(Self::ERROR_BIT | 22)
pub const ICMP_ERROR: Status = Status(Self::ERROR_BIT | 22)
An ICMP error occurred during the network operation.
sourcepub const TFTP_ERROR: Status = Status(Self::ERROR_BIT | 23)
pub const TFTP_ERROR: Status = Status(Self::ERROR_BIT | 23)
A TFTP error occurred during the network operation.
sourcepub const PROTOCOL_ERROR: Status = Status(Self::ERROR_BIT | 24)
pub const PROTOCOL_ERROR: Status = Status(Self::ERROR_BIT | 24)
A protocol error occurred during the network operation.
sourcepub const INCOMPATIBLE_VERSION: Status = Status(Self::ERROR_BIT | 25)
pub const INCOMPATIBLE_VERSION: Status = Status(Self::ERROR_BIT | 25)
The function encountered an internal version that was incompatible with a version requested by the caller.
sourcepub const SECURITY_VIOLATION: Status = Status(Self::ERROR_BIT | 26)
pub const SECURITY_VIOLATION: Status = Status(Self::ERROR_BIT | 26)
The function was not performed due to a security violation.
sourcepub const END_OF_MEDIA: Status = Status(Self::ERROR_BIT | 28)
pub const END_OF_MEDIA: Status = Status(Self::ERROR_BIT | 28)
Beginning or end of media was reached
sourcepub const END_OF_FILE: Status = Status(Self::ERROR_BIT | 31)
pub const END_OF_FILE: Status = Status(Self::ERROR_BIT | 31)
The end of the file was reached.
sourcepub const INVALID_LANGUAGE: Status = Status(Self::ERROR_BIT | 32)
pub const INVALID_LANGUAGE: Status = Status(Self::ERROR_BIT | 32)
The language specified was invalid.
sourcepub const COMPROMISED_DATA: Status = Status(Self::ERROR_BIT | 33)
pub const COMPROMISED_DATA: Status = Status(Self::ERROR_BIT | 33)
The security status of the data is unknown or compromised and the data must be updated or replaced to restore a valid security status.
sourcepub const IP_ADDRESS_CONFLICT: Status = Status(Self::ERROR_BIT | 34)
pub const IP_ADDRESS_CONFLICT: Status = Status(Self::ERROR_BIT | 34)
There is an address conflict address allocation
sourcepub const HTTP_ERROR: Status = Status(Self::ERROR_BIT | 35)
pub const HTTP_ERROR: Status = Status(Self::ERROR_BIT | 35)
A HTTP error occurred during the network operation.
source§impl Status
impl Status
sourcepub const ERROR_BIT: usize = 9_223_372_036_854_775_808usize
pub const ERROR_BIT: usize = 9_223_372_036_854_775_808usize
Bit indicating that an UEFI status code is an error.
sourcepub fn is_success(self) -> bool
pub fn is_success(self) -> bool
Returns true if status code indicates success.
sourcepub fn is_warning(self) -> bool
pub fn is_warning(self) -> bool
Returns true if status code indicates a warning.