pub struct MenuEvent {
pub id: String,
pub sequence: u64,
}Expand description
One delivered menu activation: the id the app gave the item in its
MenuSpec (e.g. "file.open"), plus the process-wide sequence number of
this activation (see the module docs). The id is passed through verbatim —
mapping it to an action is app code’s job, not this crate’s.
Fields§
§id: StringThe activated item’s app-chosen id, exactly as it appeared in the
MenuSpec the shell was configured with.
sequence: u64This activation’s position in the process-wide activation sequence,
starting at 1 for the first push. Strictly increasing, so glue can
dedupe by “the last sequence I consumed” and tell a repeat activation of
the same id apart from a re-read of the previous one.
Implementations§
Trait Implementations§
impl Eq for MenuEvent
impl StructuralPartialEq for MenuEvent
Auto Trait Implementations§
impl Freeze for MenuEvent
impl RefUnwindSafe for MenuEvent
impl Send for MenuEvent
impl Sync for MenuEvent
impl Unpin for MenuEvent
impl UnsafeUnpin for MenuEvent
impl UnwindSafe for MenuEvent
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> StorageAccess<T> for T
impl<T> StorageAccess<T> for T
Source§fn as_borrowed(&self) -> &T
fn as_borrowed(&self) -> &T
Borrows the value.
Source§fn into_taken(self) -> T
fn into_taken(self) -> T
Takes the value.