pub enum CommandScope {
Widget,
Window,
App,
}Expand description
Routing scope for a command.
Variants§
Widget
Routed through the focused UI node (with bubbling), per ADR 0020.
Window
Handled at the window/app driver boundary (e.g. create/close windows, toggle overlays).
App
Global, cross-window command handled by the app.
Trait Implementations§
Source§impl Clone for CommandScope
impl Clone for CommandScope
Source§fn clone(&self) -> CommandScope
fn clone(&self) -> CommandScope
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CommandScope
impl Debug for CommandScope
Source§impl PartialEq for CommandScope
impl PartialEq for CommandScope
impl Copy for CommandScope
impl Eq for CommandScope
impl StructuralPartialEq for CommandScope
Auto Trait Implementations§
impl Freeze for CommandScope
impl RefUnwindSafe for CommandScope
impl Send for CommandScope
impl Sync for CommandScope
impl Unpin for CommandScope
impl UnsafeUnpin for CommandScope
impl UnwindSafe for CommandScope
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