Type Alias Result

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

A specialized Result type for fernctl operations.

This type alias reduces boilerplate when returning errors from functions:

ⓘ
use fernctl::error::Result;

fn load_config(path: &Path) -> Result<Config> {
    // ...
}

It is equivalent to std::result::Result<T, FernError>.

Aliased Type§

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

Variants§

§1.0.0

Ok(T)

Contains the success value

§1.0.0

Err(FernError)

Contains the error value