pub type Result<Output = (), ErrData = ()> = Result<Completion<Output>, Error<ErrData>>;
Expand description
Return type of most UEFI functions. Both success and error payloads are optional.
Trait Implementations
sourceimpl<Output, ErrData: Debug> ResultExt<Output, ErrData> for Result<Output, ErrData>
impl<Output, ErrData: Debug> ResultExt<Output, ErrData> for Result<Output, ErrData>
sourcefn log_warning(self) -> Result<Output, Error<ErrData>>
fn log_warning(self) -> Result<Output, Error<ErrData>>
Ignore warnings, keeping a trace of them in the logs
sourcefn unwrap_success(self) -> Output
fn unwrap_success(self) -> Output
Expect success without warnings, panic otherwise
sourcefn expect_success(self, msg: &str) -> Output
fn expect_success(self, msg: &str) -> Output
Expect success without warnings, panic with provided message otherwise
sourcefn expect_error(self, msg: &str) -> Error<ErrData>
fn expect_error(self, msg: &str) -> Error<ErrData>
Expect error, panic with provided message otherwise, discarding output
sourcefn map_inner<Mapped>(
self,
f: impl FnOnce(Output) -> Mapped
) -> Result<Mapped, ErrData>
fn map_inner<Mapped>(
self,
f: impl FnOnce(Output) -> Mapped
) -> Result<Mapped, ErrData>
Transform the inner output, if any
sourcefn discard_errdata(self) -> Result<Output>
fn discard_errdata(self) -> Result<Output>
Transform the ErrData value to ()
sourcefn warning_as_error(self) -> Result<Output, Error<ErrData>> where
ErrData: Default,
fn warning_as_error(self) -> Result<Output, Error<ErrData>> where
ErrData: Default,
Treat warnings as errors