Type Alias Core

Source
pub type Core = Core;

Aliased Type§

pub struct Core {
    pub announce_policy: AnnouncePolicy,
    pub database: Database,
    pub inactive_peer_cleanup_interval: u64,
    pub listed: bool,
    pub net: Network,
    pub private: bool,
    pub private_mode: Option<PrivateMode>,
    pub tracker_policy: TrackerPolicy,
    pub tracker_usage_statistics: bool,
}

Fields§

§announce_policy: AnnouncePolicy

Announce policy configuration.

§database: Database

Database configuration.

§inactive_peer_cleanup_interval: u64

Interval in seconds that the cleanup job will run to remove inactive peers from the torrent peer list.

§listed: bool

When true only approved torrents can be announced in the tracker.

§net: Network

Network configuration.

§private: bool

When true clients require a key to connect and use the tracker.

§private_mode: Option<PrivateMode>

Configuration specific when the tracker is running in private mode.

§tracker_policy: TrackerPolicy

Tracker policy configuration.

§tracker_usage_statistics: bool

Weather the tracker should collect statistics about tracker usage. If enabled, the tracker will collect statistics like the number of connections handled, the number of announce requests handled, etc. Refer to the Tracker for more information about the collected metrics.