[][src]Struct web_sys::EventListener

#[repr(transparent)]pub struct EventListener { /* fields omitted */ }

The EventListener dictionary.

This API requires the following crate features to be activated: EventListener

Methods

impl EventListener[src]

pub fn new() -> Self[src]

Construct a new EventListener.

This API requires the following crate features to be activated: EventListener

pub fn handle_event(&mut self, val: &Function) -> &mut Self[src]

Change the handleEvent field of this object.

This API requires the following crate features to be activated: EventListener

Trait Implementations

impl AsRef<EventListener> for EventListener[src]

impl AsRef<JsValue> for EventListener[src]

impl AsRef<Object> for EventListener[src]

impl Clone for EventListener[src]

impl Debug for EventListener[src]

impl Deref for EventListener[src]

type Target = Object

The resulting type after dereferencing.

impl Eq for EventListener[src]

impl From<EventListener> for JsValue[src]

impl From<EventListener> for Object[src]

impl From<JsValue> for EventListener[src]

impl FromWasmAbi for EventListener[src]

type Abi = <JsValue as FromWasmAbi>::Abi

The wasm ABI type that this converts from when coming back out from the ABI boundary. Read more

impl IntoWasmAbi for EventListener[src]

type Abi = <JsValue as IntoWasmAbi>::Abi

The wasm ABI type that this converts into when crossing the ABI boundary. Read more

impl<'a> IntoWasmAbi for &'a EventListener[src]

type Abi = <&'a JsValue as IntoWasmAbi>::Abi

The wasm ABI type that this converts into when crossing the ABI boundary. Read more

impl JsCast for EventListener[src]

impl OptionFromWasmAbi for EventListener[src]

impl OptionIntoWasmAbi for EventListener[src]

impl<'a> OptionIntoWasmAbi for &'a EventListener[src]

impl PartialEq<EventListener> for EventListener[src]

impl RefFromWasmAbi for EventListener[src]

type Abi = <JsValue as RefFromWasmAbi>::Abi

The wasm ABI type references to Self are recovered from.

type Anchor = ManuallyDrop<EventListener>

The type that holds the reference to Self for the duration of the invocation of the function that has an &Self parameter. This is required to ensure that the lifetimes don't persist beyond one function call, and so that they remain anonymous. Read more

impl StructuralEq for EventListener[src]

impl StructuralPartialEq for EventListener[src]

impl WasmDescribe for EventListener[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ReturnWasmAbi for T where
    T: IntoWasmAbi
[src]

type Abi = <T as IntoWasmAbi>::Abi

Same as IntoWasmAbi::Abi

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.