Struct Proxy

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

Implementations

impl Proxy

fn new(target: &JsValue, handler: &Object) -> Proxy

The Proxy object is used to define custom behavior for fundamental operations (e.g. property lookup, assignment, enumeration, function invocation, etc).

MDN documentation

impl Proxy

fn revocable(target: &JsValue, handler: &Object) -> Object

The Proxy.revocable() method is used to create a revocable Proxy object.

MDN documentation

Trait Implementations

impl AsRef<JsValue> for Proxy

fn as_ref(&self) -> &JsValue

impl AsRef<Proxy> for Proxy

fn as_ref(&self) -> &Proxy

impl Clone for Proxy

fn clone(&self) -> Self

impl Debug for Proxy

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

impl Deref for Proxy

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

impl ErasableGeneric for Proxy

type Repr = JsValue;

impl From<JsValue> for Proxy

fn from(obj: JsValue) -> Self

impl FromWasmAbi for Proxy

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

impl IntoJsGeneric for Proxy where Proxy: JsGeneric,

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

impl IntoWasmAbi for Proxy

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

impl JsCast for Proxy

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

impl LongRefFromWasmAbi for Proxy

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

impl OptionFromWasmAbi for Proxy

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

impl OptionIntoWasmAbi for Proxy

fn none() -> Self::Abi

impl Promising for Proxy

type Resolution = Proxy;

impl RefFromWasmAbi for Proxy

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

impl UpcastFrom<Proxy> for Proxy

impl WasmDescribe for Proxy

fn describe()

Auto Trait Implementations

impl Freeze for Proxy

impl RefUnwindSafe for Proxy

impl Send for Proxy

impl Sync for Proxy

impl Unpin for Proxy

impl UnsafeUnpin for Proxy

impl UnwindSafe for Proxy

Blanket Implementations

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

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

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

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

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

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

impl<T> From<T> for Proxy

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

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

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

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

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

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

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

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

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

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