pub enum RoutePopDisposition {
Pop,
DoNotPop,
Bubble,
}Expand description
Indicates whether the current route should be popped.
Used as the return value for AnyRoute::will_pop.
Variants§
Pop
Pop the route.
If AnyRoute::will_pop or AnyRoute::pop_disposition return
Pop then the back button will actually pop the current route.
DoNotPop
Do not pop the route.
If AnyRoute::will_pop or AnyRoute::pop_disposition return
DoNotPop then the back button will be ignored.
Bubble
Delegate this to the next level of navigation.
If AnyRoute::will_pop or AnyRoute::pop_disposition return
Bubble then the back button will be handled by the platform’s
navigator, which will usually close the application.
Trait Implementations§
Source§impl Clone for RoutePopDisposition
impl Clone for RoutePopDisposition
impl Copy for RoutePopDisposition
Source§impl Debug for RoutePopDisposition
impl Debug for RoutePopDisposition
impl Eq for RoutePopDisposition
Source§impl PartialEq for RoutePopDisposition
impl PartialEq for RoutePopDisposition
impl StructuralPartialEq for RoutePopDisposition
Auto Trait Implementations§
impl Forget for RoutePopDisposition
impl Freeze for RoutePopDisposition
impl Move for RoutePopDisposition
impl RefUnwindSafe for RoutePopDisposition
impl Send for RoutePopDisposition
impl Sync for RoutePopDisposition
impl Unpin for RoutePopDisposition
impl UnsafeUnpin for RoutePopDisposition
impl UnwindSafe for RoutePopDisposition
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.