Enum spaceapi_server::SpaceapiServerError[][src]

pub enum SpaceapiServerError {
    Redis(RedisError),
    R2d2(R2d2Error),
    IoError(Error),
    Message(Cow<'static, str>),
}
Expand description

A SpaceapiServerError wraps general problems that can occur in the SpaceAPI server.

Variants

Redis

A problem with redis occurred.

Tuple Fields of Redis

0: RedisError
R2d2

A problem with the redis connection pool occurred.

Tuple Fields of R2d2

0: R2d2Error
IoError

An I/O error occurred.

Tuple Fields of IoError

0: Error
Message

Another error happened.

Tuple Fields of Message

0: Cow<'static, str>

Trait Implementations

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

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

🔬 This is a nightly-only experimental API. (backtrace)

Returns a stack backtrace, if available, of where this error occurred. Read more

👎 Deprecated since 1.42.0:

use the Display impl or to_string()

👎 Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Convert self into a value of type T.

Convert self into a value of type T.

Convert self into a value of type T.

Convert self into a value of type T.

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Get the TypeId of this object.