Files
drop/torrential/src/state.rs
T
2025-12-20 01:11:05 +11:00

18 lines
325 B
Rust

use std::{collections::HashMap, path::PathBuf};
use dashmap::DashMap;
use tokio::sync::OnceCell;
use crate::
DownloadContext
;
pub struct AppState {
pub token: OnceCell<AppInitData>,
pub context_cache: DashMap<(String, String), DownloadContext>,
}
#[derive(Debug)]
pub struct AppInitData {
pub key: String,
}