Enum rand::ErrorKind
[−]
[src]
pub enum ErrorKind { Unavailable, Transient, NotReady, Other, // some variants omitted }
Error kind which can be matched over.
Variants
Permanent failure: likely not recoverable without user action.
Transient
Temporary failure: recommended to retry a few times, but may also be irrecoverable.
NotReady
Not ready yet: recommended to try again a little later.
Other
Uncategorised error
Methods
impl ErrorKind
[src]
pub fn should_retry(self) -> bool
[src]
True if this kind of error may resolve itself on retry.
See also should_wait()
.
pub fn should_wait(self) -> bool
[src]
True if we should retry but wait before retrying
This implies should_retry()
is true.
pub fn description(self) -> &'static str
[src]
A description of this error kind
Trait Implementations
impl PartialEq for ErrorKind
[src]
fn eq(&self, __arg_0: &ErrorKind) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl Eq for ErrorKind
[src]
impl Debug for ErrorKind
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more