[][src]Enum rood::error::Cause

pub enum Cause {
    AlreadyExists,
    NotFound,
    ConcurrencyError,
    InvalidData,
    InvalidState,
    SerializationError,
    IOError,
    TimeError,
    GeneralError(String),
}

Possible error causes. Useful for handling various failures from the code without having too much detail.

Variants

AlreadyExists
NotFound
ConcurrencyError

Error thrown when encountering an invalid state in a concurrent situation. e.g. when awaiting a stopped thread.

InvalidData

User-input related error. Return this when processing invalid user data.

InvalidState

Return InvalidState when an operation fails due to a corrupt state. Recovery is often impossible.

SerializationError

Return when encoutering issues serializing / deserializing data.

IOError

Returned by From<std::io::Error> for rood::Error.

TimeError

Returned by From<std::time::SystemTimeError> for rood::Error.

GeneralError(String)

Used to encapsulate errors from other crates and/or errors not well defined here.

Trait Implementations

impl Debug for Cause[src]

impl PartialEq<Cause> for Cause[src]

impl StructuralPartialEq for Cause[src]

Auto Trait Implementations

impl RefUnwindSafe for Cause

impl Send for Cause

impl Sync for Cause

impl Unpin for Cause

impl UnwindSafe for Cause

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, 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.