-
Notifications
You must be signed in to change notification settings - Fork 52
Expand file tree
/
Copy pathlib.rs
More file actions
22 lines (18 loc) · 753 Bytes
/
lib.rs
File metadata and controls
22 lines (18 loc) · 753 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
//! Primitive types for [Torrust Tracker](https://docs.rs/torrust-tracker).
//!
//! This module contains the basic data structures for the [Torrust Tracker](https://docs.rs/torrust-tracker),
//! which is a `BitTorrent` tracker server. These structures are used not only
//! by the tracker server crate, but also by other crates in the Torrust
//! ecosystem.
pub mod core;
pub mod pagination;
pub mod peer;
pub mod service_binding;
pub mod swarm_metadata;
use std::collections::BTreeMap;
use std::time::Duration;
use bittorrent_primitives::info_hash::InfoHash;
/// Duration since the Unix Epoch.
pub type DurationSinceUnixEpoch = Duration;
pub type NumberOfDownloads = u32;
pub type NumberOfDownloadsBTreeMap = BTreeMap<InfoHash, NumberOfDownloads>;