Type Alias NetworkResult

Source
pub type NetworkResult<T> = Result<T, Box<dyn Error>>;
Expand description

This type represent the result of a network operation

Aliased Type§

enum NetworkResult<T> {
    Ok(T),
    Err(Box<dyn Error>),
}

Variants§

§1.0.0

Ok(T)

Contains the success value

§1.0.0

Err(Box<dyn Error>)

Contains the error value