pub struct MenuEvents {
pub latest: RwSignal<Option<MenuEvent>>,
}Expand description
The app-facing menu-activation read surface. Obtained via menu_events
(frust::menu_events() at the facade).
Fields§
§latest: RwSignal<Option<MenuEvent>>The most recently activated item, or None when nothing has been
activated in this process yet. Read/track it with the Get/Track
traits (frust::{Get, Track}) the same way any other RwSignal is read.
There is deliberately no initial-style snapshot beside it (the
deep-link source’s cold-start half): a menu cannot be activated before
the app it belongs to is running, so “the first activation ever” carries
no precedence meaning worth recording.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MenuEvents
impl RefUnwindSafe for MenuEvents
impl Send for MenuEvents
impl Sync for MenuEvents
impl Unpin for MenuEvents
impl UnsafeUnpin for MenuEvents
impl UnwindSafe for MenuEvents
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<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.