pub struct Completion<T> { /* private fields */ }
Expand description

This type is used when an UEFI operation has completed, but some non-fatal problems (UEFI warnings) may have been encountered along the way

Implementations

Build a completion from a non-error status and a function result

Extract the status of this completion

Split this completion into its inner status and result data

Access the inner value, logging the warning if there is any

Assume that no warning occured, panic if not

Assume that no warning occured, panic with provided message if not

Transform the inner value without unwrapping the Completion

Merge this completion with a success or warning status

Since this type only has storage for one warning, if two warnings must be stored, one of them will be spilled into the logs.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Performs the conversion.

Performs the conversion.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.