Expand description
Return type of most UEFI functions. Both success and error payloads are optional.
Almost all UEFI operations provide a status code as an output which
indicates either success, a warning, or an error. This type alias maps
Status::SUCCESS
to the Ok
variant (with optional Output
data), and
maps both warning and error statuses to the Err
variant (with optional
ErrData
).
Warnings are treated as errors by default because they generally indicate an abnormal situation.
Some convenience methods are provided by the ResultExt
trait.