pub struct Emit<E, T = JsValue> { /* private fields */ }
Available on crate feature
serde
only.Expand description
A type used to configure an emit operation.
Implementations§
Source§impl<E> Emit<E>
impl<E> Emit<E>
Sourcepub fn to<S>(self, target: EventTarget<S>) -> Emit<E, S::Js>where
S: ToStringValue,
pub fn to<S>(self, target: EventTarget<S>) -> Emit<E, S::Js>where
S: ToStringValue,
Trait Implementations§
Source§impl<E, T> IntoFuture for Emit<E, T>
impl<E, T> IntoFuture for Emit<E, T>
Source§type IntoFuture = EmitFuture
type IntoFuture = EmitFuture
Which kind of future are we turning this into?
Source§fn into_future(self) -> Self::IntoFuture
fn into_future(self) -> Self::IntoFuture
Creates a future from a value. Read more
Auto Trait Implementations§
impl<E, T> Freeze for Emit<E, T>
impl<E, T> RefUnwindSafe for Emit<E, T>where
E: RefUnwindSafe,
T: RefUnwindSafe,
impl<E, T = JsValue> !Send for Emit<E, T>
impl<E, T = JsValue> !Sync for Emit<E, T>
impl<E, T> Unpin for Emit<E, T>
impl<E, T> UnwindSafe for Emit<E, T>where
E: UnwindSafe,
T: 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