pub enum Target {
Global,
Window(WindowId),
Widget(WidgetId),
Auto,
}Expand description
The target of a Command.
Variants§
Global
The target is the top-level application.
The Command will be delivered to all open windows, and all widgets
in each window. Delivery will stop if the event is handled.
Window(WindowId)
The target is a specific window.
The Command will be delivered to all widgets in that window.
Delivery will stop if the event is handled.
Widget(WidgetId)
The target is a specific widget.
Auto
The target will be determined automatically.
How this behaves depends on the context used to submit the command.
If the command is submitted within a Widget method, then it will be sent to the host
window for that widget. If it is from outside the application, via ExtEventSink,
or from the root AppDelegate then it will be sent to Target::Global .
Trait Implementations§
impl Copy for Target
impl Eq for Target
impl StructuralPartialEq for Target
Auto Trait Implementations§
impl Freeze for Target
impl RefUnwindSafe for Target
impl Send for Target
impl Sync for Target
impl Unpin for Target
impl UnwindSafe for Target
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
Source§fn round_into(self) -> U
fn round_into(self) -> U
Performs the conversion.