[][src]Enum dqcsim::common::error::ErrorKind

pub enum ErrorKind {
    LogError(String),
    InvalidArgument(String),
    InvalidOperation(String),
    Other(String),
    Multiple(Vec<ErrorKind>),
    ITCError(String),
    IPCError(String),
    IoError(StringErrorKind),
    TermError(StringError),
}

Variants

LogError(String)

LogError

InvalidArgument(String)

Generic invalid argument: use when a function is called in a way it shouldn't be.

InvalidOperation(String)

Generic invalid operation: use when a function is called while it shouldn't be.

Other(String)

Generic error: use when an error doesn't fit in the above categories and you're too lazy to define one properly.

Multiple(Vec<ErrorKind>)

Wraps multiple errors that occurred asynchronously.

ITCError(String)

For propagating crossbeam_channel errors.

IPCError(String)

For propagating ipc_channel errors.

IoError(StringErrorKind)

For propagating std::io::Error errors.

TermError(StringError)

For propagating term::Error errors.

Trait Implementations

impl Debug for ErrorKind[src]

impl Display for ErrorKind[src]

impl Fail for ErrorKind[src]

impl From<ErrorKind> for Error[src]

impl PartialEq<ErrorKind> for ErrorKind[src]

impl StructuralPartialEq for ErrorKind[src]

Auto Trait Implementations

impl !RefUnwindSafe for ErrorKind

impl Send for ErrorKind

impl Sync for ErrorKind

impl Unpin for ErrorKind

impl !UnwindSafe for ErrorKind

Blanket Implementations

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

impl<T> AsFail for T where
    T: Fail, 

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

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

impl<E> Fail for E where
    E: 'static + Error + Send + Sync

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

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

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