pub enum Flag {
Show 16 variants
Authority,
BadExit,
BadDirectory,
Exit,
Fast,
Guard,
HsDir,
Named,
NoEdConsensus,
Running,
Stable,
StaleDesc,
Unnamed,
V2Dir,
V3Dir,
Valid,
}Expand description
Flags assigned to Tor relays by directory authorities.
These flags indicate various characteristics of relays and are used for path selection and relay classification.
§Flag Meanings
Flags are assigned based on relay behavior and capabilities:
- Performance flags:
Fast,Stable - Role flags:
Guard,Exit,Authority - Status flags:
Running,Valid - Warning flags:
BadExit,BadDirectory
§Example
use stem_rs::Flag;
let flag = Flag::Guard;
println!("Relay flag: {}", flag); // Prints "Guard"Variants§
Authority
Relay is a directory authority.
This relay is one of the trusted directory authorities that vote on the network consensus.
BadExit
Relay shouldn’t be used as an exit due to being problematic or malicious.
The relay has been flagged for bad behavior when used as an exit node.
BadDirectory
Relay shouldn’t be used for directory information.
Note: This flag was removed from Tor but may appear in older descriptors.
Exit
Relay’s exit policy makes it useful as an exit node.
The relay allows exiting to a reasonable number of ports.
Fast
Relay is suitable for high-bandwidth circuits.
The relay has sufficient bandwidth for performance-sensitive traffic.
Guard
Relay is suitable for being an entry guard (first hop).
The relay is stable and fast enough to be used as a guard node.
HsDir
Relay is being used as a hidden service directory.
The relay stores and serves hidden service descriptors.
Named
Relay can be referred to by its nickname.
The nickname is unique and verified.
NoEdConsensus
Relay’s Ed25519 key doesn’t match the consensus.
There’s a mismatch in the relay’s Ed25519 identity.
Running
Relay is currently usable.
The relay is online and responding to connections.
Stable
Relay is suitable for long-lived circuits.
The relay has good uptime and is reliable for persistent connections.
StaleDesc
Relay descriptor is outdated and should be re-uploaded.
The relay’s descriptor is stale and needs to be refreshed.
Unnamed
Relay isn’t currently bound to a nickname.
The nickname is not verified or is shared with other relays.
V2Dir
Relay supports the v2 directory protocol.
The relay can serve directory information via the v2 protocol.
V3Dir
Relay supports the v3 directory protocol.
The relay can serve directory information via the v3 protocol.
Valid
Relay has been validated.
The relay’s identity has been verified by the directory authorities.