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
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
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§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