torrust-actix 4.2.3

A rich, fast and efficient Bittorrent Tracker.
1
2
3
4
5
6
/// A 20-byte peer identifier as defined by the BitTorrent protocol.
///
/// Clients typically encode their name and version in the first few bytes
/// (e.g. `-TR3000-` for Transmission 3.0).  The remaining bytes are random.
#[derive(PartialEq, Eq, Hash, Clone, Copy, Debug, PartialOrd, Ord)]
pub struct PeerId(pub [u8; 20]);