pub enum NavigationEvent {
ScreenMounted {
screen_id: ScreenId,
route_name: String,
params: HashMap<String, String>,
},
ScreenUnmounting {
screen_id: ScreenId,
},
ActiveScreenChanged {
screen_id: ScreenId,
},
StateChanged {
stack_depth: usize,
active_route: String,
},
}Expand description
Navigation event (sent to React for rendering decisions).
Variants§
ScreenMounted
A new screen should be rendered.
ScreenUnmounting
A screen is being removed (animate out, then destroy).
ActiveScreenChanged
The active screen changed (for tab bar highlighting, etc.).
StateChanged
Navigation state changed (for DevTools).
Trait Implementations§
Source§fn clone(&self) -> NavigationEvent
fn clone(&self) -> NavigationEvent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. 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