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