pub enum JavaScriptEvaluationResultSerializationError {
DetachedShadowRoot,
StaleElementReference,
UnknownType,
OtherJavaScriptError,
}
Expand description
Indicates the reason that JavaScript evaluation failed due serializing issues the result of the evaluation.
Variants§
DetachedShadowRoot
Serialization could not complete because a JavaScript value contained a detached shadow root according to https://w3c.github.io/webdriver/#dfn-internal-json-clone.
StaleElementReference
Serialization could not complete because a JavaScript value contained a “stale” element reference according to https://w3c.github.io/webdriver/#dfn-get-a-known-element.
UnknownType
Serialization could not complete because a JavaScript value of an unknown type was encountered.
OtherJavaScriptError
This is a catch all for other kinds of errors that can happen during JavaScript value serialization. For instances where this can happen, see: https://w3c.github.io/webdriver/#dfn-clone-an-object.
Trait Implementations§
Source§impl Clone for JavaScriptEvaluationResultSerializationError
impl Clone for JavaScriptEvaluationResultSerializationError
Source§fn clone(&self) -> JavaScriptEvaluationResultSerializationError
fn clone(&self) -> JavaScriptEvaluationResultSerializationError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'de> Deserialize<'de> for JavaScriptEvaluationResultSerializationError
impl<'de> Deserialize<'de> for JavaScriptEvaluationResultSerializationError
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl EnumMessage for JavaScriptEvaluationResultSerializationError
impl EnumMessage for JavaScriptEvaluationResultSerializationError
fn get_message(&self) -> Option<&'static str>
fn get_detailed_message(&self) -> Option<&'static str>
Source§fn get_documentation(&self) -> Option<&'static str>
fn get_documentation(&self) -> Option<&'static str>
Get the doc comment associated with a variant if it exists.
fn get_serializations(&self) -> &'static [&'static str]
Source§impl PartialEq for JavaScriptEvaluationResultSerializationError
impl PartialEq for JavaScriptEvaluationResultSerializationError
Source§fn eq(&self, other: &JavaScriptEvaluationResultSerializationError) -> bool
fn eq(&self, other: &JavaScriptEvaluationResultSerializationError) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for JavaScriptEvaluationResultSerializationError
Auto Trait Implementations§
impl Freeze for JavaScriptEvaluationResultSerializationError
impl RefUnwindSafe for JavaScriptEvaluationResultSerializationError
impl Send for JavaScriptEvaluationResultSerializationError
impl Sync for JavaScriptEvaluationResultSerializationError
impl Unpin for JavaScriptEvaluationResultSerializationError
impl UnwindSafe for JavaScriptEvaluationResultSerializationError
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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