pub enum EventTarget<S> {
Any,
AnyLabel(S),
App,
Window(S),
Webview(S),
WebviewWindow(S),
}
Available on crate feature
serde
only.Expand description
An argument of event target for the emit_to
function.
Variants§
Implementations§
Source§impl<S> EventTarget<S>
impl<S> EventTarget<S>
pub fn from_string(s: S) -> Self
pub fn as_ref(&self) -> EventTarget<&S>
pub fn map<F, T>(self, f: F) -> EventTarget<T>where
F: FnOnce(S) -> T,
Trait Implementations§
Auto Trait Implementations§
impl<S> Freeze for EventTarget<S>where
S: Freeze,
impl<S> RefUnwindSafe for EventTarget<S>where
S: RefUnwindSafe,
impl<S> Send for EventTarget<S>where
S: Send,
impl<S> Sync for EventTarget<S>where
S: Sync,
impl<S> Unpin for EventTarget<S>where
S: Unpin,
impl<S> UnwindSafe for EventTarget<S>where
S: 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