[][src]Enum bdrck::error::Error

pub enum Error {
    EnvVar(VarError),
    FromUtf8(FromUtf8Error),
    HexDecode(DecodeError),
    Http(Error),
    Internal(Error),
    InvalidArgument(Error),
    Io(Error),
    Json(Error),
    MsgDecode(Error),
    MsgEncode(Error),
    NotFound(Error),
    Nul(NulError),
    ParseInt(ParseIntError),
    ParseIpAddr(AddrParseError),
    Precondition(Error),
    Regex(Error),
    SetLogger(SetLoggerError),
    StringParse(ParseError),
    Unknown(Error),
    Url(ParseError),
}

Error is a structure which denotes all of the possible kinds of errors bdrck can produce, including errors from any of its underlying dependencies.

Variants

EnvVar(VarError)

An error encountered while trying to interact with environment variables.

FromUtf8(FromUtf8Error)

An error decoding bytes as UTF-8 text.

HexDecode(DecodeError)

An error encountered in trying to decode a hex string to the bytes it represents.

Http(Error)

An error originating in HTTP client code.

Internal(Error)

An internal unrecoverable error, usually due to some underlying library.

InvalidArgument(Error)

Errors akin to EINVAL - essentially, an argument passed into a function was invalid in some way..

Io(Error)

An I/O error, generally encountered when interacting with the filesystem.

Json(Error)

An error encountered while serializing or deserializing JSON.

MsgDecode(Error)

An error encountered when decoding a serialized message.

MsgEncode(Error)

An error encountered when encoding a struct to a serialized message.

NotFound(Error)

Errors akin to ENOENT - something like e.g. "file not found", although this is not necessarily always about files.

An error where some data returned by an underlying library call contained a NUL byte ('\0'), in a context where such a thing is invalid.

ParseInt(ParseIntError)

An error encountered when trying to parse an integer from a string.

ParseIpAddr(AddrParseError)

An error encountered when trying to parse an IP address from a string.

Precondition(Error)

A precondition error, which basically amounts to a function being called when one or more of its preconditions were not satisfied.

Regex(Error)

An error encountered in either parsing or applying a regular expression.

SetLogger(SetLoggerError)

An error encountered when attempting to set the global Logger implementation.

StringParse(ParseError)

An awkward hack; this error exists to use String's FromStr impl, but this operation won't actually ever fail.

Unknown(Error)

An error of an unknown type occurred. Generally this comes from some dependency or underlying library, in a case where it's difficult to tell exactly what kind of problem occurred.

An error in decoding a URL.

Trait Implementations

impl Debug for Error[src]

impl Display for Error[src]

impl Fail for Error[src]

impl From<AddrParseError> for Error[src]

impl From<Error> for Error[src]

impl From<Error> for Error[src]

impl From<Error> for Error[src]

impl From<Error> for Error[src]

impl From<Error> for Error[src]

impl From<Error> for Error[src]

impl From<Error> for Error[src]

impl From<FromUtf8Error> for Error[src]

impl From<Infallible> for Error[src]

impl From<NulError> for Error[src]

impl From<ParseError> for Error[src]

impl From<ParseIntError> for Error[src]

impl From<SetLoggerError> for Error[src]

impl From<VarError> for Error[src]

Auto Trait Implementations

impl !RefUnwindSafe for Error

impl Send for Error

impl Sync for Error

impl Unpin for Error

impl !UnwindSafe for Error

Blanket Implementations

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

impl<T> AsFail for T where
    T: Fail
[src]

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
[src]

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