pub(crate) type RequestInfo = RequestInfo<DomTypeHolder>;
Aliased Type§
enum RequestInfo {
Request(Root<Dom<Request>>),
USVString(USVString),
}
Variants§
Trait Implementations
Source§impl<D> FromJSValConvertible for RequestOrUSVString<D>where
D: DomTypes,
impl<D> FromJSValConvertible for RequestOrUSVString<D>where
D: DomTypes,
Source§unsafe fn from_jsval(
cx: *mut JSContext,
value: Handle<'_, Value>,
_option: (),
) -> Result<ConversionResult<RequestOrUSVString<D>>, ()>
unsafe fn from_jsval( cx: *mut JSContext, value: Handle<'_, Value>, _option: (), ) -> Result<ConversionResult<RequestOrUSVString<D>>, ()>
Convert
val
to type Self
.
Optional configuration of type T
can be passed as the option
argument.
If it returns Err(())
, a JSAPI exception is pending.
If it returns Ok(Failure(reason))
, there is no pending JSAPI exception.