pub enum AutomationError {
Launch(LaunchError),
Connection(ConnectionError),
Cdp(CdpError),
Json(Error),
Base64(DecodeError),
MissingWebSocketEndpoint,
Timeout {
what: String,
},
MissingElement,
Selector(String),
MissingField(&'static str),
}Expand description
Errors produced by playhard-automation.
Variants§
Launch(LaunchError)
Chrome launch failed.
Connection(ConnectionError)
Transport connection failed.
Cdp(CdpError)
CDP command failed.
Json(Error)
JSON serialization or deserialization failed.
Base64(DecodeError)
Base64 decoding failed.
MissingWebSocketEndpoint
A required websocket endpoint was missing.
Timeout
A wait timed out.
MissingElement
A locator action could not find a matching element.
Selector(String)
A selector operation failed.
MissingField(&'static str)
An expected protocol field was missing.
Trait Implementations§
Source§impl Debug for AutomationError
impl Debug for AutomationError
Source§impl Display for AutomationError
impl Display for AutomationError
Source§impl Error for AutomationError
impl Error for AutomationError
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<CdpError> for AutomationError
impl From<CdpError> for AutomationError
Source§fn from(source: CdpError) -> AutomationError
fn from(source: CdpError) -> AutomationError
Converts to this type from the input type.
Source§impl From<ConnectionError> for AutomationError
impl From<ConnectionError> for AutomationError
Source§fn from(source: ConnectionError) -> AutomationError
fn from(source: ConnectionError) -> AutomationError
Converts to this type from the input type.
Source§impl From<DecodeError> for AutomationError
impl From<DecodeError> for AutomationError
Source§fn from(source: DecodeError) -> AutomationError
fn from(source: DecodeError) -> AutomationError
Converts to this type from the input type.
Source§impl From<Error> for AutomationError
impl From<Error> for AutomationError
Source§fn from(source: Error) -> AutomationError
fn from(source: Error) -> AutomationError
Converts to this type from the input type.
Source§impl From<LaunchError> for AutomationError
impl From<LaunchError> for AutomationError
Source§fn from(source: LaunchError) -> AutomationError
fn from(source: LaunchError) -> AutomationError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AutomationError
impl !RefUnwindSafe for AutomationError
impl Send for AutomationError
impl Sync for AutomationError
impl Unpin for AutomationError
impl UnsafeUnpin for AutomationError
impl !UnwindSafe for AutomationError
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