ux-components 0.1.3

Backend agnostic GUI framework
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
pub enum RoutePopDisposition {
    // Pop the route.
    // If Route.willPop returns pop then the back button will actually pop the current route.
    Pop = 0,
    // Do not pop the route.
    // If Route.willPop returns doNotPop then the back button will be ignored.
    DoNotPop = 1,
    // Delegate this to the next level of navigation.
    // If Route.willPop returns bubble then the back button will be handled by the SystemNavigator, which will usually close the application.
    Bubble = 2,
}

impl Default for RoutePopDisposition {
    fn default() -> Self {
        Self::Pop
    }
}