Base working commit with a UI thread (Tokio), Network thread (Tokio), and an input events thread (std).

This commit is contained in:
2023-08-08 10:50:03 -06:00
parent f436a66069
commit 0d4e283c21
15 changed files with 532 additions and 1 deletions
+26
View File
@@ -0,0 +1,26 @@
use std::sync::Arc;
use reqwest::Client;
use tokio::sync::Mutex;
use crate::app::App;
pub(crate) mod radarr;
#[derive(Debug, Eq, PartialEq, Hash)]
pub enum RadarrEvent {
HealthCheck,
GetOverview
}
pub struct Network<'a> {
pub client: Client,
pub app: &'a Arc<Mutex<App>>
}
impl<'a> Network<'a> {
pub fn new(client: Client, app: &'a Arc<Mutex<App>>) -> Self {
Network { client, app }
}
}