Diffstat (limited to 'src/app.rs')
| -rw-r--r-- | src/app.rs | 22 |
|
1 file changed, 22 insertions(+) diff --git a/src/app.rs b/src/app.rs new file mode 100644 index 0000000..8f53667 100644 --- /dev/null +++ b/src/app.rs @@ -1,0 +1,22 @@ use anyhow::Result; use crate::nm::client::NmClient; pub struct App { pub nm: NmClient, pub should_quit: bool, } impl App { pub async fn new() -> Result<Self> { let nm = NmClient::new().await?; Ok(Self { nm, should_quit: false, }) } pub fn quit(&mut self) { self.should_quit = true; } }
