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

pub struct WebDriverError {
    pub error: ErrorStatus,
    pub message: Cow<'static, str>,
    pub stack: Cow<'static, str>,
    pub delete_session: bool,
}

Fields

error: ErrorStatusmessage: Cow<'static, str>stack: Cow<'static, str>delete_session: bool

Methods

impl WebDriverError[src]

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

pub fn new_with_stack<S>(
    error: ErrorStatus,
    message: S,
    stack: S
) -> WebDriverError where
    S: Into<Cow<'static, str>>, 
[src]

pub fn error_code(&self) -> &'static str[src]

pub fn http_status(&self) -> StatusCode[src]

Trait Implementations

impl PartialEq<WebDriverError> for WebDriverError[src]

impl From<Error> for WebDriverError[src]

impl From<Error> for WebDriverError[src]

impl From<DecodeError> for WebDriverError[src]

impl From<Box<dyn Error + 'static>> for WebDriverError[src]

impl Display for WebDriverError[src]

impl Debug for WebDriverError[src]

impl Error for WebDriverError[src]

impl Serialize for WebDriverError[src]

Auto Trait Implementations

Blanket Implementations

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Erased for T

impl<T> Same<T> for T

type Output = T

Should always be Self