Result

Type Alias Result 

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

Result type alias using BrowserPoolError.

This is the standard result type returned by most browser pool operations.

§Example

use html2pdf_api::Result;

fn my_function() -> Result<String> {
    Ok("success".to_string())
}

Aliased Type§

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

Variants§

§1.0.0

Ok(T)

Contains the success value

§1.0.0

Err(BrowserPoolError)

Contains the error value