Type Alias winsafe::AnyResult

source ·
pub type AnyResult<T> = Result<T, Box<dyn Error + Send + Sync>>;
Available on crate feature kernel only.
Expand description

A Result alias which returns a Box<dyn Error + Send + Sync> on failure.

This is the most generic Result possible – any other Result can be converted into it.

Aliased Type§

enum AnyResult<T> {
    Ok(T),
    Err(Box<dyn Error + Send + Sync>),
}

Variants§

§1.0.0

Ok(T)

Contains the success value

§1.0.0

Err(Box<dyn Error + Send + Sync>)

Contains the error value