WallSwitchResult

Type Alias WallSwitchResult 

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

Result type to simplify function signatures.

This is a custom result type that uses our custom WallSwitchError for the error type.

Functions can return WallSwitchResult<T> and then use ? to automatically propagate errors.

Aliased Type§

pub enum WallSwitchResult<T> {
    Ok(T),
    Err(WallSwitchError),
}

Variants§

§1.0.0

Ok(T)

Contains the success value

§1.0.0

Err(WallSwitchError)

Contains the error value