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.

Temporary failure: recommended to retry a few times, but may also be irrecoverable.

Not ready yet: recommended to try again a little later.

Uncategorised error

Methods

impl ErrorKind
[src]

[src]

True if this kind of error may resolve itself on retry.

See also should_wait().

[src]

True if we should retry but wait before retrying

This implies should_retry() is true.

[src]

A description of this error kind

Trait Implementations

impl PartialEq for ErrorKind
[src]

[src]

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

1.0.0
[src]

This method tests for !=.

impl Eq for ErrorKind
[src]

impl Debug for ErrorKind
[src]

[src]

Formats the value using the given formatter. Read more

impl Copy for ErrorKind
[src]

impl Clone for ErrorKind
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more