Struct uefi::Status[][src]

#[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 operation completed successfully.

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.

There is no data pending upon return.

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 device does not contain any medium to perform the operation.

The medium in the device has changed since the last access.

The item was not found.

Access was denied.

The server was not found or did not respond to the request.

A mapping to a device does not exist.

The timeout time expired.

The protocol has not been started.

The protocol has already been started.

The operation was aborted.

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.

A CRC error was detected.

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.

Returns true if the status code indicates an error.

Converts this status code into a result with a given value.

Converts this status code into a result with a given error payload

Convert this status code into a result with a given value and error payload

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.

Performs the conversion.

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

Constructs the type from a compatible Residual type. Read more

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

Constructs the type from a compatible Residual type. Read more

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

This method tests for !=.

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

The type of the value produced by ? when not short-circuiting.

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

The type of the value passed to FromResidual::from_residual as part of ? when short-circuiting. Read more

🔬 This is a nightly-only experimental API. (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

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

Constructs the type from its Output type. Read more

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.

Performs the conversion.

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.