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§
source§impl PartialEq<Target> for Target
impl PartialEq<Target> for Target
impl Copy for Target
impl Eq for Target
impl StructuralEq for Target
impl StructuralPartialEq for Target
Auto Trait Implementations§
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> 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>
§impl<T> RoundFrom<T> for T
impl<T> RoundFrom<T> for T
§fn round_from(x: T) -> T
fn round_from(x: T) -> T
Performs the conversion.
§impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere U: RoundFrom<T>,
§fn round_into(self) -> U
fn round_into(self) -> U
Performs the conversion.