pub enum InvocationSource {
Palette,
KeyBinding,
Menu,
Mouse,
Automation,
}Expand description
UI or integration surface that requested an action invocation.
The source lets dispatch code distinguish user intent from a palette, keybinding, menu, mouse action, or automation path when that distinction affects behavior or telemetry.
Match this enum when dispatch needs different policy for palette, keybinding, menu, mouse, or automation callers.
Variants§
Palette
Invocation came from a command palette.
KeyBinding
Invocation came from a keybinding.
Menu
Invocation came from a menu item.
Mouse
Invocation came from a mouse interaction.
Automation
Invocation came from automation or a non-interactive integration.
Trait Implementations§
Source§impl Clone for InvocationSource
impl Clone for InvocationSource
Source§fn clone(&self) -> InvocationSource
fn clone(&self) -> InvocationSource
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for InvocationSource
Source§impl Debug for InvocationSource
impl Debug for InvocationSource
impl Eq for InvocationSource
Source§impl PartialEq for InvocationSource
impl PartialEq for InvocationSource
Source§fn eq(&self, other: &InvocationSource) -> bool
fn eq(&self, other: &InvocationSource) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for InvocationSource
Auto Trait Implementations§
impl Freeze for InvocationSource
impl RefUnwindSafe for InvocationSource
impl Send for InvocationSource
impl Sync for InvocationSource
impl Unpin for InvocationSource
impl UnsafeUnpin for InvocationSource
impl UnwindSafe for InvocationSource
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