#[repr(transparent)]pub struct Status(pub usize);Expand description
A value that represents success, a warning, or an error.
Tuple Fields§
§0: usizeImplementations§
Source§impl Status
impl Status
pub const ERROR_BIT: usize = 9_223_372_036_854_775_808usize
Sourcepub const WARN_UNKNOWN_GLYPH: Self
pub const WARN_UNKNOWN_GLYPH: Self
The string contained one or more characters that the device could not render and were skipped.
Sourcepub const WARN_DELETE_FAILURE: Self
pub const WARN_DELETE_FAILURE: Self
The handle was closed, but the file was not deleted.
Sourcepub const WARN_WRITE_FAILURE: Self
pub const WARN_WRITE_FAILURE: Self
The handle was closed, but the data to the file was not flushed.
Sourcepub const WARN_BUFFER_TOO_SMALL: Self
pub const WARN_BUFFER_TOO_SMALL: Self
The resulting buffer was too small, and the data was truncated to fit.
Sourcepub const WARN_STALE_DATA: Self
pub const WARN_STALE_DATA: Self
The data has not been updated without the timeframe set by local policy for this type of data.
Sourcepub const WARN_FILE_SYSTEM: Self
pub const WARN_FILE_SYSTEM: Self
The resulting buffer contains a UEFI-compliant file system.
Sourcepub const WARN_RESET_REQUIRED: Self
pub const WARN_RESET_REQUIRED: Self
The operation will be processed across a system reset.
Sourcepub const LOAD_ERROR: Self
pub const LOAD_ERROR: Self
The image failed to load.
Sourcepub const INVALID_PARAMETER: Self
pub const INVALID_PARAMETER: Self
A parameter was incorrect.
Sourcepub const UNSUPPORTED: Self
pub const UNSUPPORTED: Self
The operation is not supported.
Sourcepub const BAD_BUFFER_SIZE: Self
pub const BAD_BUFFER_SIZE: Self
The buffer was not the proper size for the request.
Sourcepub const BUFFER_TOO_SMALL: Self
pub const BUFFER_TOO_SMALL: Self
The buffer is not large enough to hold the requested data.
Sourcepub const DEVICE_ERROR: Self
pub const DEVICE_ERROR: Self
The physical device reported an error while attempting the operation.
Sourcepub const WRITE_PROTECTED: Self
pub const WRITE_PROTECTED: Self
The device cannot be written to.
Sourcepub const OUT_OF_RESOURCES: Self
pub const OUT_OF_RESOURCES: Self
A resource has run out.
Sourcepub const VOLUME_CORRUPTED: Self
pub const VOLUME_CORRUPTED: Self
An inconsistency was detected on the file system.
Sourcepub const VOLUME_FULL: Self
pub const VOLUME_FULL: Self
There is no more space on the file system.
Sourcepub const MEDIA_CHANGED: Self
pub const MEDIA_CHANGED: Self
The medium in the device has changed since the last access.
Sourcepub const ACCESS_DENIED: Self
pub const ACCESS_DENIED: Self
Access was denied.
Sourcepub const NO_RESPONSE: Self
pub const NO_RESPONSE: Self
The server was not found or did not respond to the request.
Sourcepub const NO_MAPPING: Self
pub const NO_MAPPING: Self
A mapping to a device does not exist.
Sourcepub const NOT_STARTED: Self
pub const NOT_STARTED: Self
The protocol has not been started.
Sourcepub const ALREADY_STARTED: Self
pub const ALREADY_STARTED: Self
The protocol has already been started.
Sourcepub const ICMP_ERROR: Self
pub const ICMP_ERROR: Self
An ICMP error occurred during the network operation.
Sourcepub const TFTP_ERROR: Self
pub const TFTP_ERROR: Self
A TFTP error occurred during the network operation.
Sourcepub const PROTOCOL_ERROR: Self
pub const PROTOCOL_ERROR: Self
A protocol error occurred during the network operation.
Sourcepub const INCOMPATIBLE_VERSION: Self
pub const INCOMPATIBLE_VERSION: Self
The function encountered an internal version that was incompatible with a version requested by the caller.
Sourcepub const SECURITY_VIOLATION: Self
pub const SECURITY_VIOLATION: Self
The function was not performed due to a security violation.
Sourcepub const END_OF_MEDIA: Self
pub const END_OF_MEDIA: Self
Beginning or end of media was reached.
Sourcepub const END_OF_FILE: Self
pub const END_OF_FILE: Self
The end of the file was reached.
Sourcepub const INVALID_LANGUAGE: Self
pub const INVALID_LANGUAGE: Self
The language specified was invalid.
Sourcepub const COMPROMISED_DATA: Self
pub const COMPROMISED_DATA: Self
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: Self
pub const IP_ADDRESS_CONFLICT: Self
There is an address conflict allocation.
Sourcepub const HTTP_ERROR: Self
pub const HTTP_ERROR: Self
An HTTP error occurred during the network operation.
Sourcepub fn is_success(&self) -> bool
pub fn is_success(&self) -> bool
Returns true if the value represents a success.
Sourcepub fn is_warning(&self) -> bool
pub fn is_warning(&self) -> bool
Returns true if the value represents a warning.