pub struct Callback<E> { /* private fields */ }
Expand description
Listens for JavaScript callbacks.
This implements the Stream trait; the stream yields callback events.
The new_callback function creates a Callback; go see how it is used.
Trait Implementations§
Source§impl<E: JsCast> Stream for Callback<E>
impl<E: JsCast> Stream for Callback<E>
Auto Trait Implementations§
impl<E> Freeze for Callback<E>
impl<E> RefUnwindSafe for Callback<E>where
E: RefUnwindSafe,
impl<E> Send for Callback<E>where
E: Send,
impl<E> Sync for Callback<E>where
E: Sync,
impl<E> Unpin for Callback<E>
impl<E> UnwindSafe for Callback<E>where
E: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more