Struct webdriver::error::WebDriverError
source · pub struct WebDriverError {
pub error: ErrorStatus,
pub message: Cow<'static, str>,
pub stack: Cow<'static, str>,
pub delete_session: bool,
}
Fields§
§error: ErrorStatus
§message: Cow<'static, str>
§stack: Cow<'static, str>
§delete_session: bool
Implementations§
source§impl WebDriverError
impl WebDriverError
pub fn serialize<__S>(
__self: &WebDriverError,
__serializer: __S,
) -> Result<__S::Ok, __S::Error>where
__S: Serializer,
source§impl WebDriverError
impl WebDriverError
pub fn new<S>(error: ErrorStatus, message: S) -> WebDriverError
pub fn new_with_stack<S>( error: ErrorStatus, message: S, stack: S, ) -> WebDriverError
pub fn error_code(&self) -> &'static str
pub fn http_status(&self) -> StatusCode
Trait Implementations§
source§impl Debug for WebDriverError
impl Debug for WebDriverError
source§impl Display for WebDriverError
impl Display for WebDriverError
source§impl Error for WebDriverError
impl Error for WebDriverError
source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§impl From<DecodeError> for WebDriverError
impl From<DecodeError> for WebDriverError
source§fn from(err: DecodeError) -> WebDriverError
fn from(err: DecodeError) -> WebDriverError
Converts to this type from the input type.
source§impl From<Error> for WebDriverError
impl From<Error> for WebDriverError
source§fn from(err: Error) -> WebDriverError
fn from(err: Error) -> WebDriverError
Converts to this type from the input type.
source§impl From<Error> for WebDriverError
impl From<Error> for WebDriverError
source§fn from(err: Error) -> WebDriverError
fn from(err: Error) -> WebDriverError
Converts to this type from the input type.
source§impl PartialEq for WebDriverError
impl PartialEq for WebDriverError
source§fn eq(&self, other: &WebDriverError) -> bool
fn eq(&self, other: &WebDriverError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for WebDriverError
impl Serialize for WebDriverError
impl StructuralPartialEq for WebDriverError
Auto Trait Implementations§
impl Freeze for WebDriverError
impl RefUnwindSafe for WebDriverError
impl Send for WebDriverError
impl Sync for WebDriverError
impl Unpin for WebDriverError
impl UnwindSafe for WebDriverError
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more