Result

Type Alias Result 

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

A std::result::Result with a Box<std::error::Error> as the error type. This is used to return a bunch of errors early, including a limit being reached, the buffer failed to be read from, or a string not being valid UTF-8.

Aliased Type§

pub enum Result<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