Enum wkhtmltopdf::Error []

pub enum Error {
    IoError(Error),
    IllegalInit,
    NotInitialized,
    Blocked,
    ThreadMismatch(usizeusize),
    ConversionFailed(String),
    GlobalSettingFailure(StringString),
    ObjectSettingFailure(StringString),
}

The error type for wkhtmltopdf generation

Variants

IoError(Error)

Indicates an I/O error that occurred during PDF generation

IllegalInit

Indicates the wkhtmltopdf could be be initialized because it can only be initialized once per process (wkhtmltopdf limitation)

NotInitialized

Indicates that wkhtmltopdf has not yet been initialized in this process

Blocked

Indicates that wkhtmltopdf is blocked by another request within this process (wkhtmltopdf limitation)

ThreadMismatch(usizeusize)

Indicates that wkhtmltopdf was initialized on a different thread than this PDF generation atttempt (wkhtmltopdf limitation)

ConversionFailed(String)

Indicates that wkhtmltopdf conversion failed - internal error message comes directly from wkhtmltopdf

GlobalSettingFailure(StringString)

Indicates that wkhtmltopdf failed to set a particular global setting

ObjectSettingFailure(StringString)

Indicates that wkhtmltopdf failed to set a particular object setting

Trait Implementations

impl Debug for Error
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Display for Error

fn fmt(&self, fmt: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Error for Error

fn description(&self) -> &str

A short description of the error. Read more

fn cause(&self) -> Option<&Error>

The lower-level cause of this error, if any. Read more

impl From<Error> for Error

fn from(err: Error) -> Error

Performs the conversion.