pub struct BackPresses {
pub count: RwSignal<u64>,
}Expand description
The Android back-press source (frust-reactive’s
process-wide back source — see its back module docs). A mobile shell
delivers a hardware/gesture back press via push_back_press, and the
facade’s BackHandler reads it via back_presses to pop a navigator;
set_handles_back/handles_back are the “framework consumes the next
back” flag a shell polls to decide whether a root-level back falls through
to the platform. App code normally uses attach_back_handler rather than
these directly; push_back_press is also the desktop dev seam (no shell
writes on desktop yet).
The app-facing back-press read surface (see the module docs). Obtained via
back_presses (frust::back_presses() at the facade).
Fields§
§count: RwSignal<u64>A monotonically increasing count of back presses delivered this
process. Read/track it with the Get/Track traits the same way any
other RwSignal is read; glue dedupes by comparing it against the last
value it consumed (see the module docs).
Trait Implementations§
Source§impl Clone for BackPresses
impl Clone for BackPresses
Source§fn clone(&self) -> BackPresses
fn clone(&self) -> BackPresses
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for BackPresses
impl RefUnwindSafe for BackPresses
impl Send for BackPresses
impl Sync for BackPresses
impl Unpin for BackPresses
impl UnsafeUnpin for BackPresses
impl UnwindSafe for BackPresses
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.