sled

Type Alias Result

Source
pub type Result<T> = Result<T, Error>;
Expand description

The top-level result type for dealing with fallible operations. The errors tend to be fail-stop, and nested results are used in cases where the outer fail-stop error can have try ? used on it, exposing the inner operation that is expected to fail under normal operation. The philosophy behind this is detailed on the sled blog.

Aliased Type§

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

Variants§

§1.0.0

Ok(T)

Contains the success value

§1.0.0

Err(Error)

Contains the error value

Trait Implementations§

Source§

impl From<Error> for Result<Result<(), CompareAndSwapError>>

Source§

fn from(error: Error) -> Self

Converts to this type from the input type.