Struct neon::prelude::EventHandler [−][src]
pub struct EventHandler(_);
Implementations
impl EventHandler
[src]
impl EventHandler
[src]pub fn new<'a, C: Context<'a>, T: Value>(
cx: &C,
this: Handle<'_, T>,
callback: Handle<'_, JsFunction>
) -> Self
[src]
cx: &C,
this: Handle<'_, T>,
callback: Handle<'_, JsFunction>
) -> Self
pub fn schedule<T, F>(&self, arg_cb: F) where
T: Value,
F: for<'a> FnOnce(&mut TaskContext<'a>) -> Vec<Handle<'a, T>>,
F: Send + 'static,
[src]
T: Value,
F: for<'a> FnOnce(&mut TaskContext<'a>) -> Vec<Handle<'a, T>>,
F: Send + 'static,
pub fn schedule_with<F>(&self, arg_cb: F) where
F: FnOnce(&mut TaskContext<'_>, Handle<'_, JsValue>, Handle<'_, JsFunction>),
F: Send + 'static,
[src]
F: FnOnce(&mut TaskContext<'_>, Handle<'_, JsValue>, Handle<'_, JsFunction>),
F: Send + 'static,
Trait Implementations
impl Clone for EventHandler
[src]
impl Clone for EventHandler
[src]fn clone(&self) -> EventHandler
[src]
fn clone(&self) -> EventHandler
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl RefUnwindSafe for EventHandler
impl Send for EventHandler
impl Sync for EventHandler
impl Unpin for EventHandler
impl UnwindSafe for EventHandler
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more