Type Alias Result

Source
pub type Result<T = ()> = Result<T, CapturedError>;
Expand description

A type alias for a result that can be either a boxed error or a value This is useful to avoid having to use Result<T, CapturedError> everywhere

Aliased Type§

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

Variants§

§1.0.0

Ok(T)

Contains the success value

§1.0.0

Err(CapturedError)

Contains the error value

Trait Implementations§

Source§

impl SpawnIfAsync<()> for Result<()>

Source§

fn spawn(self)

Spawn the value into the dioxus runtime if it is an async block