Struct rand::Error [] [src]

pub struct Error { /* fields omitted */ }

Error type of random number generators

This is a relatively simple error type, designed for compatibility with and without the Rust std library. It embeds a "kind" code, a message (static string only), and an optional chained cause (std only).

Methods

impl Error
[src]

[src]

Create a new instance, with specified kind and a message.

[src]

Create a new instance, with specified kind, message, and a chained cause.

Note: stdError is an alias for std::error::Error.

If not targetting std (i.e. no_std), this function is replaced by another with the same prototype, except that there are no bounds on the type E (because both Box and stdError are unavailable), and the cause is ignored.

[src]

Get the error kind

[src]

Get the error message

Trait Implementations

impl From<TimerError> for Error
[src]

[src]

Performs the conversion.

impl Debug for Error
[src]

[src]

Formats the value using the given formatter. Read more

impl Display for Error
[src]

[src]

Formats the value using the given formatter. Read more

impl stdError for Error
[src]

[src]

A short description of the error. Read more

[src]

The lower-level cause of this error, if any. Read more