Skip to main content

Result

Type Alias Result 

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

Convenience alias used throughout the crate so that functions can return Result<T> without specifying the error type every time. Import this alias alongside BrowserError when writing code that calls into scrapling-browser.

Aliased Type§

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

Variants§

§1.0.0

Ok(T)

Contains the success value

§1.0.0

Err(BrowserError)

Contains the error value