pub struct NavigationNotification {
pub can_handle_pop: bool,
}Expand description
A Notification that gets dispatched when the Navigator can or cannot handle a pop.
This is used by the framework to determine whether the app should handle back navigation itself or hand it to the platform.
Fields§
§can_handle_pop: boolWhether the Navigator in the subtree can handle a pop.
Implementations§
Sourcepub fn new(can_handle_pop: bool) -> NavigationNotification
pub fn new(can_handle_pop: bool) -> NavigationNotification
Creates a notification that reports whether a pop can be handled.
Trait Implementations§
Source§fn viewport_depth(&self) -> Option<&Cell<u32>>
fn viewport_depth(&self) -> Option<&Cell<u32>>
The depth counter of a notification that mixes in
ViewportNotificationMixin
(widgets/scroll_notification.rs), for the viewport elements that increment it as
the notification bubbles past them; None — the default — for every other
notification. Read moreSource§fn as_scroll_notification(&self) -> Option<&dyn ScrollNotification>
fn as_scroll_notification(&self) -> Option<&dyn ScrollNotification>
The notification as a
ScrollNotification (widgets/scroll_notification.rs), for a
NotificationListener<dyn ScrollNotification>; None — the default — for every
other notification. Read moreSource§fn as_layout_changed_notification(
&self,
) -> Option<&dyn LayoutChangedNotification>
fn as_layout_changed_notification( &self, ) -> Option<&dyn LayoutChangedNotification>
The notification as a
LayoutChangedNotification
(widgets/notification_listener.rs), for a
NotificationListener<dyn LayoutChangedNotification>; None — the default — for every
other notification. Read moreAuto Trait Implementations§
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
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<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.