pub enum IntentSource {
Shortcut,
Menu,
Handler,
Programmatic,
Accessibility,
Unknown,
}Expand description
Where an intent came from. Intent::new starts
every intent at Programmatic, and the framework’s activation paths
override it before dispatch: Shortcut when a chord match produces the
intent, Handler for anything raised from inside a gesture handler
(button taps included), Accessibility for an AccessKit action, and
Menu for a handler that wrapped itself in
EventContext::with_intent_source.
Read by the dispatch tap to fill the source prop on
intent.dispatched. Unknown is left for callers that have no origin
to report; no framework dispatch site emits it.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for IntentSource
impl Clone for IntentSource
Source§fn clone(&self) -> IntentSource
fn clone(&self) -> IntentSource
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 IntentSource
Source§impl Debug for IntentSource
impl Debug for IntentSource
impl Eq for IntentSource
Source§impl PartialEq for IntentSource
impl PartialEq for IntentSource
impl StructuralPartialEq for IntentSource
Auto Trait Implementations§
impl Freeze for IntentSource
impl RefUnwindSafe for IntentSource
impl Send for IntentSource
impl Sync for IntentSource
impl Unpin for IntentSource
impl UnsafeUnpin for IntentSource
impl UnwindSafe for IntentSource
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