Struct neon::event::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]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
Auto Trait Implementations
impl RefUnwindSafe for EventHandler
impl RefUnwindSafe for EventHandler
impl Send for EventHandler
impl Send for EventHandler
impl Sync for EventHandler
impl Sync for EventHandler
impl Unpin for EventHandler
impl Unpin for EventHandler
impl UnwindSafe for EventHandler
impl UnwindSafe for EventHandler