Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge torrust#871: Add privacy methods to the
TrackerMode
enum
0c9da2f feat: [torrust#870] implement traits Dispaly and FromStr for TrackerMode (Jose Celano) 74d8f79 feat: [torrust#870] remove Copy trait from TrackerMode (Jose Celano) 932e66e feat: [torrust#870] add privacy methods to the TrackerMode (Jose Celano) Pull request description: The tracker mode can be: - Public (Non-whitelisted) - Listed (Whitelisted) - Private (Non-whitelisted) - PrivateListed (Whitelisted) There should have been two different flags (in my opinion): - Visibility: public or private - Whitelisted: true or false So we would have the same four combinations: - Not whitelisted: - Public - Private - Whitelisted - Public - Private That's a pending refactor. For this PR, the goal is just to align this enum with what we added to the Index so we can use it in the Index via the primitive crate. See https://github.com/torrust/torrust-index/blob/develop/src/config.rs#L140-L171 ACKs for top commit: josecelano: ACK 0c9da2f Tree-SHA512: 526cbd57d4d7e5ff5668c870dc2d24a27b60e73ac07da99dab1139337729e04dbce1704d348a64bd1466440640b8652f3ff20d847e933ed800463b2100ef261d
- Loading branch information