Enum script_traits::JsEvalResult
source · pub enum JsEvalResult {
NoContent,
Ok(Vec<u8>),
}
Expand description
The result of evaluating a javascript scheme url.
Variants§
NoContent
The js evaluation had a non-string result, 204 status code. https://html.spec.whatwg.org/multipage/#navigate 12.11
Ok(Vec<u8>)
The js evaluation had a string result.
Trait Implementations§
source§impl Clone for JsEvalResult
impl Clone for JsEvalResult
source§fn clone(&self) -> JsEvalResult
fn clone(&self) -> JsEvalResult
Returns a copy 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 Debug for JsEvalResult
impl Debug for JsEvalResult
source§impl<'de> Deserialize<'de> for JsEvalResult
impl<'de> Deserialize<'de> for JsEvalResult
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
Auto Trait Implementations§
impl RefUnwindSafe for JsEvalResult
impl Send for JsEvalResult
impl Sync for JsEvalResult
impl Unpin for JsEvalResult
impl UnwindSafe for JsEvalResult
Blanket Implementations§
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> MaybeBoxed<Box<T, Global>> for T
impl<T> MaybeBoxed<Box<T, Global>> for T
source§fn maybe_boxed(self) -> Box<T, Global>
fn maybe_boxed(self) -> Box<T, Global>
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