Type Alias skua::Result

source ·
pub type Result<T, E = Error> = StdResult<T, E>;
Expand description

The common result type between most library functions.

The library exposes functions which, for a result type, exposes only one type, rather than the usual 2 (Result<T, Error>). This is because all functions that return a result return serenity’s Error, so this is implied, and a “simpler” result is used.

Aliased Type§

enum Result<T, E = Error> {
    Ok(T),
    Err(E),
}

Variants§

§1.0.0

Ok(T)

Contains the success value

§1.0.0

Err(E)

Contains the error value