#[repr(transparent)]pub struct Status(pub usize);
Expand description
UEFI uses status codes in order to report successes, errors, and warnings.
Unfortunately, the spec allows and encourages implementation-specific non-portable status codes. Therefore, these cannot be modeled as a Rust enum, as injecting an unknown value in a Rust enum is undefined behaviour.
For lack of a better option, we therefore model them as a newtype of usize.
Tuple Fields
0: usize
Implementations
The string contained characters that could not be rendered and were skipped.
The handle was closed, but the file was not deleted.
The handle was closed, but the data to the file was not flushed properly.
The resulting buffer was too small, and the data was truncated.
The data has not been updated within the timeframe set by local policy.
The resulting buffer contains UEFI-compliant file system.
The operation will be processed across a system reset.
The image failed to load.
A parameter was incorrect.
The operation is not supported.
The buffer was not the proper size for the request.
The buffer is not large enough to hold the requested data. The required buffer size is returned in the appropriate parameter.
The physical device reported an error while attempting the operation.
The device cannot be written to.
A resource has run out.
An inconstency was detected on the file system.
There is no more space on the file system.
The medium in the device has changed since the last access.
Access was denied.
The server was not found or did not respond to the request.
A mapping to a device does not exist.
The protocol has not been started.
The protocol has already been started.
An ICMP error occurred during the network operation.
A TFTP error occurred during the network operation.
A protocol error occurred during the network operation.
The function encountered an internal version that was incompatible with a version requested by the caller.
The function was not performed due to a security violation.
Beginning or end of media was reached
The end of the file was reached.
The language specified was invalid.
The security status of the data is unknown or compromised and the data must be updated or replaced to restore a valid security status.
There is an address conflict address allocation
A HTTP error occurred during the network operation.
Returns true if status code indicates success.
Returns true if status code indicates a warning.
Converts this status code into a result with a given value.
Converts this status code into a result with a given error payload
Trait Implementations
try_trait_v2
)Constructs the type from a compatible Residual
type. Read more
try_trait_v2
)Constructs the type from a compatible Residual
type. Read more
type Output = Completion<()>
type Output = Completion<()>
try_trait_v2
)The type of the value produced by ?
when not short-circuiting.
type Residual = StatusResidual
type Residual = StatusResidual
try_trait_v2
)The type of the value passed to FromResidual::from_residual
as part of ?
when short-circuiting. Read more
try_trait_v2
)Used in ?
to decide whether the operator should produce a value
(because this returned ControlFlow::Continue
)
or propagate a value back to the caller
(because this returned ControlFlow::Break
). Read more
try_trait_v2
)Constructs the type from its Output
type. Read more
Auto Trait Implementations
impl RefUnwindSafe for Status
impl UnwindSafe for Status
Blanket Implementations
Mutably borrows from an owned value. Read more