1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
use std::{fs::File, path::PathBuf, sync::Arc};

use parking_lot::Mutex;

use crate::chunk_tracker::ChunkTracker;

use super::ManagedTorrentInfo;

pub struct TorrentStatePaused {
    pub(crate) info: Arc<ManagedTorrentInfo>,
    pub(crate) files: Vec<Arc<Mutex<File>>>,
    pub(crate) filenames: Vec<PathBuf>,
    pub(crate) chunk_tracker: ChunkTracker,
    pub(crate) have_bytes: u64,
    pub(crate) needed_bytes: u64,
}

// impl TorrentStatePaused {
//     pub fn get_have_bytes(&self) -> u64 {
//         self.have_bytes
//     }
//     pub fn get_needed_bytes(&self) -> u64 {
//         self.needed_bytes
//     }
// }