torrust-tracker 3.0.0

A feature rich BitTorrent tracker.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use torrust_tracker::core::auth::Key;

#[derive(Clone, Debug)]
pub struct ConnectionInfo {
    pub bind_address: String,
    pub key: Option<Key>,
}

impl ConnectionInfo {
    pub fn anonymous(bind_address: &str) -> Self {
        Self {
            bind_address: bind_address.to_string(),
            key: None,
        }
    }
}