pub struct ServoCapabilities {
pub browser_name: String,
pub browser_version: String,
pub platform_name: Option<String>,
pub accept_insecure_certs: bool,
pub set_window_rect: bool,
pub strict_file_interactability: bool,
pub accept_proxy: bool,
pub accept_custom: bool,
}
Fields§
§browser_name: String
§browser_version: String
§platform_name: Option<String>
§accept_insecure_certs: bool
§set_window_rect: bool
§strict_file_interactability: bool
§accept_proxy: bool
§accept_custom: bool
Implementations§
source§impl ServoCapabilities
impl ServoCapabilities
pub fn new() -> ServoCapabilities
Trait Implementations§
source§impl BrowserCapabilities for ServoCapabilities
impl BrowserCapabilities for ServoCapabilities
source§fn init(&mut self, _: &Capabilities)
fn init(&mut self, _: &Capabilities)
Set up the Capabilites object Read more
source§fn browser_name(&mut self, _: &Capabilities) -> WebDriverResult<Option<String>>
fn browser_name(&mut self, _: &Capabilities) -> WebDriverResult<Option<String>>
Name of the browser
source§fn browser_version(
&mut self,
_: &Capabilities,
) -> WebDriverResult<Option<String>>
fn browser_version( &mut self, _: &Capabilities, ) -> WebDriverResult<Option<String>>
Version number of the browser
source§fn compare_browser_version(&mut self, _: &str, _: &str) -> WebDriverResult<bool>
fn compare_browser_version(&mut self, _: &str, _: &str) -> WebDriverResult<bool>
Compare actual browser version to that provided in a version specifier Read more
source§fn platform_name(&mut self, _: &Capabilities) -> WebDriverResult<Option<String>>
fn platform_name(&mut self, _: &Capabilities) -> WebDriverResult<Option<String>>
Name of the platform/OS
source§fn accept_insecure_certs(&mut self, _: &Capabilities) -> WebDriverResult<bool>
fn accept_insecure_certs(&mut self, _: &Capabilities) -> WebDriverResult<bool>
Whether insecure certificates are supported
source§fn set_window_rect(&mut self, _: &Capabilities) -> WebDriverResult<bool>
fn set_window_rect(&mut self, _: &Capabilities) -> WebDriverResult<bool>
Indicates whether driver supports all of the window resizing and
repositioning commands.
source§fn strict_file_interactability(
&mut self,
_: &Capabilities,
) -> WebDriverResult<bool>
fn strict_file_interactability( &mut self, _: &Capabilities, ) -> WebDriverResult<bool>
Indicates that interactability checks will be applied to
<input type=file>
.fn accept_proxy( &mut self, _: &Map<String, Value>, _: &Capabilities, ) -> WebDriverResult<bool>
source§fn accept_custom(
&mut self,
_: &str,
_: &Value,
_: &Capabilities,
) -> WebDriverResult<bool>
fn accept_custom( &mut self, _: &str, _: &Value, _: &Capabilities, ) -> WebDriverResult<bool>
Check if custom properties are accepted capabilites Read more
source§fn validate_custom(&mut self, _: &str, _: &Value) -> WebDriverResult<()>
fn validate_custom(&mut self, _: &str, _: &Value) -> WebDriverResult<()>
Type check custom properties Read more
source§fn web_socket_url(
&mut self,
_: &Map<String, Value>,
) -> Result<bool, WebDriverError>
fn web_socket_url( &mut self, _: &Map<String, Value>, ) -> Result<bool, WebDriverError>
Whether a WebSocket URL for the created session has to be returned
source§fn webauthn_virtual_authenticators(
&mut self,
_: &Map<String, Value>,
) -> Result<bool, WebDriverError>
fn webauthn_virtual_authenticators( &mut self, _: &Map<String, Value>, ) -> Result<bool, WebDriverError>
Indicates whether the endpoint node supports all Virtual Authenticators commands.
source§fn webauthn_extension_uvm(
&mut self,
_: &Map<String, Value>,
) -> Result<bool, WebDriverError>
fn webauthn_extension_uvm( &mut self, _: &Map<String, Value>, ) -> Result<bool, WebDriverError>
Indicates whether the endpoint node WebAuthn WebDriver implementation supports the User
Verification Method extension.
source§fn webauthn_extension_prf(
&mut self,
_: &Map<String, Value>,
) -> Result<bool, WebDriverError>
fn webauthn_extension_prf( &mut self, _: &Map<String, Value>, ) -> Result<bool, WebDriverError>
Indicates whether the endpoint node WebAuthn WebDriver implementation supports the prf
extension.
source§fn webauthn_extension_large_blob(
&mut self,
_: &Map<String, Value>,
) -> Result<bool, WebDriverError>
fn webauthn_extension_large_blob( &mut self, _: &Map<String, Value>, ) -> Result<bool, WebDriverError>
Indicates whether the endpoint node WebAuthn WebDriver implementation supports the
largeBlob extension.
source§fn webauthn_extension_cred_blob(
&mut self,
_: &Map<String, Value>,
) -> Result<bool, WebDriverError>
fn webauthn_extension_cred_blob( &mut self, _: &Map<String, Value>, ) -> Result<bool, WebDriverError>
Indicates whether the endpoint node WebAuthn WebDriver implementation supports the credBlob
extension.
Auto Trait Implementations§
impl Freeze for ServoCapabilities
impl RefUnwindSafe for ServoCapabilities
impl Send for ServoCapabilities
impl Sync for ServoCapabilities
impl Unpin for ServoCapabilities
impl UnwindSafe for ServoCapabilities
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§impl<T> MaybeBoxed<Box<T>> for T
impl<T> MaybeBoxed<Box<T>> for T
source§fn maybe_boxed(self) -> Box<T>
fn maybe_boxed(self) -> Box<T>
Convert
source§impl<T> MaybeBoxed<T> for T
impl<T> MaybeBoxed<T> for T
source§fn maybe_boxed(self) -> T
fn maybe_boxed(self) -> T
Convert