Result

Type Alias Result 

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

Result type alias for RESO client operations

§Examples

fn parse_value(s: &str) -> Result<i32> {
    s.parse().map_err(|_| {
        reso_client::ResoError::Parse("Invalid integer".to_string())
    })
}

Aliased Type§

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

Variants§

§1.0.0

Ok(T)

Contains the success value

§1.0.0

Err(ResoError)

Contains the error value