Struct webdriver::command::WebDriverMessage
source · pub struct WebDriverMessage<U: WebDriverExtensionRoute = VoidWebDriverExtensionRoute> {
pub session_id: Option<String>,
pub command: WebDriverCommand<U::Command>,
}
Fields§
§session_id: Option<String>
§command: WebDriverCommand<U::Command>
Implementations§
source§impl<U: WebDriverExtensionRoute> WebDriverMessage<U>
impl<U: WebDriverExtensionRoute> WebDriverMessage<U>
pub fn new( session_id: Option<String>, command: WebDriverCommand<U::Command>, ) -> WebDriverMessage<U>
pub fn from_http( match_type: Route<U>, params: &Parameters, raw_body: &str, requires_body: bool, ) -> WebDriverResult<WebDriverMessage<U>>
fn get_session_id(params: &Parameters) -> Option<String>
fn decode_body(body: &str, requires_body: bool) -> WebDriverResult<Value>
Trait Implementations§
source§impl<U: Debug + WebDriverExtensionRoute> Debug for WebDriverMessage<U>
impl<U: Debug + WebDriverExtensionRoute> Debug for WebDriverMessage<U>
source§impl<U: PartialEq + WebDriverExtensionRoute> PartialEq for WebDriverMessage<U>
impl<U: PartialEq + WebDriverExtensionRoute> PartialEq for WebDriverMessage<U>
source§fn eq(&self, other: &WebDriverMessage<U>) -> bool
fn eq(&self, other: &WebDriverMessage<U>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<U: WebDriverExtensionRoute> StructuralPartialEq for WebDriverMessage<U>
Auto Trait Implementations§
impl<U> Freeze for WebDriverMessage<U>
impl<U> RefUnwindSafe for WebDriverMessage<U>
impl<U> Send for WebDriverMessage<U>
impl<U> Sync for WebDriverMessage<U>
impl<U> Unpin for WebDriverMessage<U>
impl<U> UnwindSafe for WebDriverMessage<U>
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