Mountain/IPC/WindServiceHandlers/Navigation/HistoryGoForward.rs
1
2//! Pop the next URI off the forward-stack and return it.
3//! Mirrors `HistoryGoBack`.
4
5use std::sync::Arc;
6
7use serde_json::Value;
8
9use crate::RunTime::ApplicationRunTime::ApplicationRunTime;
10
11pub async fn Fn(RunTime:Arc<ApplicationRunTime>) -> Result<Value, String> {
12 let Uri = RunTime.Environment.ApplicationState.Feature.NavigationHistory.GoForward();
13
14 Ok(Uri.map(Value::String).unwrap_or(Value::Null))
15}