Error in getrandom - Rust

pub struct Error(/* private fields */);
Expand description
Source§
Source

This target/platform is not supported by getrandom.

Source

The platform-specific errno returned a non-positive value.

Source

Encountered an unexpected situation which should not happen in practice.

Source

Extract the raw OS error code (if this error came from the OS)

This method is identical to std::io::Error::raw_os_error(), except that it works in no_std contexts. On most targets this method returns Option<i32>, but some platforms (e.g. UEFI) may use a different primitive type like usize. Consult with the RawOsError docs for more information.

If this method returns None, the error value can still be formatted via the Display implementation.

Source

Creates a new instance of an Error from a particular custom error code.

Source§
Source§
Source§
Source§
1.30.0 · Source§

Returns the lower-level source of this error, if any. Read more

1.0.0 · Source§

👎Deprecated since 1.42.0: use the Display impl or to_string()

1.0.0 · Source§

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting

Source§

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

Provides type-based access to context intended for error reports. Read more

Source§

Available on crate feature std only.

Source§

Converts to this type from the input type.

Source§
Source§

Tests for self and other values to be equal, and is used by ==.

1.0.0 · Source§

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.

Source§
Source§
Source§

§
§
§
§
§
§