[]Struct augdom::event::UserProximity

pub struct UserProximity(_);

Fresh data is available from a proximity sensor (indicates whether the nearby object is near the device or not). MDN documentation

Methods from Deref<Target = UserProximityEvent>

pub fn near(&self) -> bool[src]

Getter for the near field of this object.

MDN Documentation

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

Trait Implementations

impl AsRef<Event> for UserProximity[src]

impl AsRef<JsValue> for UserProximity[src]

impl Deref for UserProximity[src]

type Target = UserProximityEvent

The resulting type after dereferencing.

impl Event for UserProximity[src]

impl From<UserProximity> for JsValue[src]

impl FromWasmAbi for UserProximity[src]

type Abi = u32

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

impl IntoWasmAbi for UserProximity[src]

type Abi = u32

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

impl JsCast for UserProximity[src]

impl OptionFromWasmAbi for UserProximity[src]

impl OptionIntoWasmAbi for UserProximity[src]

impl RefFromWasmAbi for UserProximity[src]

type Abi = u32

The wasm ABI type references to Self are recovered from.

type Anchor = Ref<'static, UserProximity>

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 RefMutFromWasmAbi for UserProximity[src]

type Abi = u32

Same as RefFromWasmAbi::Abi

type Anchor = RefMut<'static, UserProximity>

Same as RefFromWasmAbi::Anchor

impl WasmDescribe for UserProximity[src]

Auto Trait Implementations

impl RefUnwindSafe for UserProximity

impl !Send for UserProximity

impl !Sync for UserProximity

impl Unpin for UserProximity

impl UnwindSafe for UserProximity

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, 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.