3096a2307f
* Change mixnode, gateway, network and nym-api binary licenses to GPLv3 * Add license to cargo files * Revert model license to match crate * Add license to nym-node * Revert model license to match crate * Fix formatting --------- Co-authored-by: Mark Sinclair <mmsinclair@users.noreply.github.com>
39 lines
855 B
Rust
39 lines
855 B
Rust
// Copyright 2023 - Nym Technologies SA <contact@nymtech.net>
|
|
// SPDX-License-Identifier: GPL-3.0-only
|
|
|
|
use tokio::time::Instant;
|
|
|
|
#[derive(Debug, Clone)]
|
|
pub(crate) struct AppState {
|
|
pub(crate) startup_time: Instant,
|
|
// wireguard: WireguardAppState,
|
|
}
|
|
|
|
// #[derive(Debug, Clone)]
|
|
// pub struct WireguardAppState {
|
|
// // inner: Option<WireguardAppStateInner>,
|
|
// }
|
|
//
|
|
// #[derive(Debug)]
|
|
// pub(crate) struct WireguardAppStateInner {
|
|
// //
|
|
// }
|
|
//
|
|
// impl FromRef<AppState> for WireguardAppState {
|
|
// fn from_ref(app_state: &AppState) -> Self {
|
|
// app_state.wireguard.clone()
|
|
// }
|
|
// }
|
|
|
|
impl AppState {
|
|
pub fn new() -> Self {
|
|
AppState {
|
|
// is it 100% accurate?
|
|
// no.
|
|
// does it have to be?
|
|
// also no.
|
|
startup_time: Instant::now(),
|
|
}
|
|
}
|
|
}
|