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.