#[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 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§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dst: *mut u8)
unsafe fn clone_to_uninit(&self, dst: *mut u8)
clone_to_uninit
)