Struct UriError

#[repr(transparent)]
pub struct UriError { /* private fields */ }

The URIError object represents an error when a global URI handling function was used in a wrong way.

MDN documentation

Implementations

impl UriError

fn new(message: &str) -> UriError

The URIError object represents an error when a global URI handling function was used in a wrong way.

MDN documentation

impl UriError

fn new_with_options(message: &str, options: &ErrorOptions) -> UriError

Creates a new URIError with the given message and a typed ErrorOptions dictionary whose cause property indicates the original cause of the error.

MDN documentation

Trait Implementations

impl AsRef<Error> for UriError

fn as_ref(&self) -> &Error

impl AsRef<JsValue> for UriError

fn as_ref(&self) -> &JsValue

impl AsRef<Object> for UriError

fn as_ref(&self) -> &Object

impl AsRef<UriError> for UriError

fn as_ref(&self) -> &UriError

impl Clone for UriError

fn clone(&self) -> Self

impl Debug for UriError

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl Deref for UriError

type Target = Error;
fn deref(&self) -> &Error

impl Eq for UriError

impl ErasableGeneric for UriError

type Repr = JsValue;

impl From<JsValue> for UriError

fn from(obj: JsValue) -> Self

impl FromWasmAbi for UriError

type Abi = <JsValue as FromWasmAbi>::Abi;
unsafe fn from_abi(js: Self::Abi) -> Self

impl IntoJsGeneric for UriError where UriError: JsGeneric,

type JsCanon = UriError;
fn to_js(self) -> UriError

impl IntoWasmAbi for UriError

type Abi = <JsValue as IntoWasmAbi>::Abi;
fn into_abi(self) -> Self::Abi

impl JsCast for UriError

fn instanceof(val: &JsValue) -> bool
fn unchecked_from_js(val: JsValue) -> Self
fn unchecked_from_js_ref(val: &JsValue) -> &Self

impl LongRefFromWasmAbi for UriError

type Abi = <JsValue as LongRefFromWasmAbi>::Abi;
type Anchor = UriError;
unsafe fn long_ref_from_abi(js: Self::Abi) -> Self::Anchor

impl OptionFromWasmAbi for UriError

fn is_none(abi: &Self::Abi) -> bool

impl OptionIntoWasmAbi for UriError

fn none() -> Self::Abi

impl PartialEq for UriError

fn eq(&self, other: &Self) -> bool

impl Promising for UriError

type Resolution = UriError;

impl RefFromWasmAbi for UriError

type Abi = <JsValue as RefFromWasmAbi>::Abi;
type Anchor = ManuallyDrop<UriError>;
unsafe fn ref_from_abi(js: Self::Abi) -> Self::Anchor

impl StructuralPartialEq for UriError

impl UpcastFrom<UriError> for UriError

impl WasmDescribe for UriError

fn describe()

Auto Trait Implementations

impl Freeze for UriError

impl RefUnwindSafe for UriError

impl Send for UriError

impl Sync for UriError

impl Unpin for UriError

impl UnsafeUnpin for UriError

impl UnwindSafe for UriError

Blanket Implementations

impl<P, T> Receiver for UriError where P: Deref<Target = T> + ?Sized, T: ?Sized,

impl<S, T> Upcast<T> for UriError where T: UpcastFrom<S> + ?Sized, S: ?Sized,

impl<T> Any for UriError where T: 'static + ?Sized,

impl<T> Borrow<T> for UriError where T: ?Sized,

impl<T> BorrowMut<T> for UriError where T: ?Sized,

impl<T> CloneToUninit for UriError where T: Clone,

impl<T> From<T> for UriError

impl<T> JsGeneric for UriError where T: ErasableGeneric<Repr = JsValue> + UpcastFrom<T> + Upcast<JsValue> + JsCast + 'static,

impl<T> ReturnWasmAbi for UriError where T: IntoWasmAbi,

impl<T> ToOwned for UriError where T: Clone,

impl<T> TryFromJsValue for UriError where T: JsCast,

impl<T> VectorFromWasmAbi for UriError where T: ErasableGeneric<Repr = JsValue> + WasmDescribe,

impl<T> VectorIntoWasmAbi for UriError where T: ErasableGeneric<Repr = JsValue> + WasmDescribe,

impl<T> VectorRefIntoWasmAbi for UriError where &'a T: for<'a> Into<JsValue>,

impl<T, U> Into<U> for UriError where U: From<T>,

impl<T, U> TryFrom<U> for UriError where U: Into<T>,

impl<T, U> TryInto<U> for UriError where U: TryFrom<T>,