[][src]Struct raw_window_handle::web::WebHandle

pub struct WebHandle {
    pub id: u32,
    // some fields omitted
}
This is supported on WebAssembly only.

Raw window handle for the web

Construction

let handle = WebHandle {
    /* fields */
    ..WebHandle::empty()
};

Fields

id: u32
This is supported on WebAssembly only.

An ID value inserted into the data attributes of the canvas element as 'raw-handle'

When accessing from JS, the attribute will automatically be called rawHandle

Each canvas created by the windowing system should be assigned their own unique ID. 0 should be reserved for invalid / null IDs.

Methods

impl WebHandle[src]

pub fn empty() -> WebHandle[src]

This is supported on WebAssembly only.

Trait Implementations

impl Debug for WebHandle[src]

impl PartialEq<WebHandle> for WebHandle[src]

impl Eq for WebHandle[src]

impl Hash for WebHandle[src]

impl Copy for WebHandle[src]

impl StructuralPartialEq for WebHandle[src]

impl StructuralEq for WebHandle[src]

impl Clone for WebHandle[src]

Auto Trait Implementations

impl Unpin for WebHandle

impl Send for WebHandle

impl Sync for WebHandle

Blanket Implementations

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

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

type Error = !

The type returned in the event of a conversion error.

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

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.

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

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

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