#[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 = _
pub const WARN_UNKNOWN_GLYPH: Status = _
The string contained characters that could not be rendered and were skipped.
sourcepub const WARN_DELETE_FAILURE: Status = _
pub const WARN_DELETE_FAILURE: Status = _
The handle was closed, but the file was not deleted.
sourcepub const WARN_WRITE_FAILURE: Status = _
pub const WARN_WRITE_FAILURE: Status = _
The handle was closed, but the data to the file was not flushed properly.
sourcepub const WARN_BUFFER_TOO_SMALL: Status = _
pub const WARN_BUFFER_TOO_SMALL: Status = _
The resulting buffer was too small, and the data was truncated.
sourcepub const WARN_STALE_DATA: Status = _
pub const WARN_STALE_DATA: Status = _
The data has not been updated within the timeframe set by local policy.
sourcepub const WARN_FILE_SYSTEM: Status = _
pub const WARN_FILE_SYSTEM: Status = _
The resulting buffer contains UEFI-compliant file system.
sourcepub const WARN_RESET_REQUIRED: Status = _
pub const WARN_RESET_REQUIRED: Status = _
The operation will be processed across a system reset.
sourcepub const LOAD_ERROR: Status = _
pub const LOAD_ERROR: Status = _
The image failed to load.
sourcepub const INVALID_PARAMETER: Status = _
pub const INVALID_PARAMETER: Status = _
A parameter was incorrect.
sourcepub const UNSUPPORTED: Status = _
pub const UNSUPPORTED: Status = _
The operation is not supported.
sourcepub const BAD_BUFFER_SIZE: Status = _
pub const BAD_BUFFER_SIZE: Status = _
The buffer was not the proper size for the request.
sourcepub const BUFFER_TOO_SMALL: Status = _
pub const BUFFER_TOO_SMALL: Status = _
The buffer is not large enough to hold the requested data. The required buffer size is returned in the appropriate parameter.
sourcepub const DEVICE_ERROR: Status = _
pub const DEVICE_ERROR: Status = _
The physical device reported an error while attempting the operation.
sourcepub const WRITE_PROTECTED: Status = _
pub const WRITE_PROTECTED: Status = _
The device cannot be written to.
sourcepub const OUT_OF_RESOURCES: Status = _
pub const OUT_OF_RESOURCES: Status = _
A resource has run out.
sourcepub const VOLUME_CORRUPTED: Status = _
pub const VOLUME_CORRUPTED: Status = _
An inconstency was detected on the file system.
sourcepub const VOLUME_FULL: Status = _
pub const VOLUME_FULL: Status = _
There is no more space on the file system.
sourcepub const NO_MEDIA: Status = _
pub const NO_MEDIA: Status = _
The device does not contain any medium to perform the operation.
sourcepub const MEDIA_CHANGED: Status = _
pub const MEDIA_CHANGED: Status = _
The medium in the device has changed since the last access.
sourcepub const ACCESS_DENIED: Status = _
pub const ACCESS_DENIED: Status = _
Access was denied.
sourcepub const NO_RESPONSE: Status = _
pub const NO_RESPONSE: Status = _
The server was not found or did not respond to the request.
sourcepub const NO_MAPPING: Status = _
pub const NO_MAPPING: Status = _
A mapping to a device does not exist.
sourcepub const NOT_STARTED: Status = _
pub const NOT_STARTED: Status = _
The protocol has not been started.
sourcepub const ALREADY_STARTED: Status = _
pub const ALREADY_STARTED: Status = _
The protocol has already been started.
sourcepub const ICMP_ERROR: Status = _
pub const ICMP_ERROR: Status = _
An ICMP error occurred during the network operation.
sourcepub const TFTP_ERROR: Status = _
pub const TFTP_ERROR: Status = _
A TFTP error occurred during the network operation.
sourcepub const PROTOCOL_ERROR: Status = _
pub const PROTOCOL_ERROR: Status = _
A protocol error occurred during the network operation.
sourcepub const INCOMPATIBLE_VERSION: Status = _
pub const INCOMPATIBLE_VERSION: Status = _
The function encountered an internal version that was incompatible with a version requested by the caller.
sourcepub const SECURITY_VIOLATION: Status = _
pub const SECURITY_VIOLATION: Status = _
The function was not performed due to a security violation.
sourcepub const END_OF_MEDIA: Status = _
pub const END_OF_MEDIA: Status = _
Beginning or end of media was reached
sourcepub const END_OF_FILE: Status = _
pub const END_OF_FILE: Status = _
The end of the file was reached.
sourcepub const INVALID_LANGUAGE: Status = _
pub const INVALID_LANGUAGE: Status = _
The language specified was invalid.
sourcepub const COMPROMISED_DATA: Status = _
pub const COMPROMISED_DATA: Status = _
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 = _
pub const IP_ADDRESS_CONFLICT: Status = _
There is an address conflict address allocation
sourcepub const HTTP_ERROR: Status = _
pub const HTTP_ERROR: Status = _
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.
Trait Implementations§
source§impl Ord for Status
impl Ord for Status
source§impl PartialOrd for Status
impl PartialOrd for Status
impl Copy for Status
impl Eq for Status
impl StructuralPartialEq for Status
Auto Trait Implementations§
impl Freeze for Status
impl RefUnwindSafe for Status
impl Send for Status
impl Sync for Status
impl Unpin for Status
impl UnwindSafe for Status
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
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)
clone_to_uninit
)