Type Alias specs::storage::InsertResult

source ·
pub type InsertResult<T> = Result<Option<T>, Error>;
Expand description

The status of an insert()ion into a storage. If the insertion was successful then the Ok value will contain the component that was replaced (if any).

Aliased Type§

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

Variants§

§1.0.0

Ok(Option<T>)

Contains the success value

§1.0.0

Err(Error)

Contains the error value