Struct webdriver::error::WebDriverError [] [src]

pub struct WebDriverError {
    pub error: ErrorStatus,
    pub message: Cow<'static, str>,
    // some fields omitted
}

Fields

error: ErrorStatus message: Cow<'static, str>

Methods

impl WebDriverError
[src]

fn new<S>(error: ErrorStatus, message: S) -> WebDriverError where S: Into<Cow<'static, str>>

fn status_code(&self) -> &'static str

fn http_status(&self) -> StatusCode

fn to_json_string(&self) -> String

fn set_delete_session(&mut self)

fn delete_session(&self) -> bool

Trait Implementations

impl Debug for WebDriverError
[src]

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

Formats the value using the given formatter.

impl Display for WebDriverError
[src]

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

Formats the value using the given formatter.

impl ToJson for WebDriverError
[src]

fn to_json(&self) -> Json

Converts the value of self to an instance of JSON

impl Error for WebDriverError
[src]

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<ParserError> for WebDriverError
[src]

fn from(err: ParserError) -> WebDriverError

Performs the conversion.

impl From<IoError> for WebDriverError
[src]

fn from(err: IoError) -> WebDriverError

Performs the conversion.

impl From<DecoderError> for WebDriverError
[src]

fn from(err: DecoderError) -> WebDriverError

Performs the conversion.

impl From<FromBase64Error> for WebDriverError
[src]

fn from(err: FromBase64Error) -> WebDriverError

Performs the conversion.

impl From<Box<Error>> for WebDriverError
[src]

fn from(err: Box<Error>) -> WebDriverError

Performs the conversion.