Struct spinoso_random::InitializeError[][src]

pub struct InitializeError { /* fields omitted */ }

Error that indicates a Random random number generator failed to initialize.

When initializing an Mt with a random seed, gathering entropy from the host system can fail.

This error corresponds to the Ruby RuntimeError Exception class.

Examples

let err = InitializeError::new();
assert_eq!(err.message(), "failed to get urandom");

Implementations

impl InitializeError[src]

#[must_use]pub const fn new() -> Self[src]

Construct a new, default initialize error.

Examples

const ERR: InitializeError = InitializeError::new();
assert_eq!(ERR.message(), "failed to get urandom");

#[must_use]pub const fn message(self) -> &'static str[src]

Retrieve the exception message associated with this initialization error.

Examples

let err = InitializeError::new();
assert_eq!(err.message(), "failed to get urandom");

Trait Implementations

impl Clone for InitializeError[src]

impl Copy for InitializeError[src]

impl Debug for InitializeError[src]

impl Default for InitializeError[src]

impl Display for InitializeError[src]

impl Eq for InitializeError[src]

impl Error for InitializeError[src]

impl From<InitializeError> for Error[src]

impl Hash for InitializeError[src]

impl Ord for InitializeError[src]

impl PartialEq<InitializeError> for InitializeError[src]

impl PartialOrd<InitializeError> for InitializeError[src]

impl StructuralEq for InitializeError[src]

impl StructuralPartialEq for InitializeError[src]

Auto Trait Implementations

impl RefUnwindSafe for InitializeError

impl Send for InitializeError

impl Sync for InitializeError

impl Unpin for InitializeError

impl UnwindSafe for InitializeError

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]