pub type RouterMd = MdRouterStatus;Expand description
The real router status entry type.
Aliased Type§
pub struct RouterMd {
pub r: RouterStatusIntroItem,
pub m: FixedB64<32>,
pub a: Vec<SocketAddr>,
pub flags: DocRelayFlags,
pub version: Option<SoftwareVersion>,
pub protos: Protocols,
pub weight: RelayWeightsItem,
pub port_policy: NotPresent,
pub ed25519_id: NotPresent,
pub stats: NotPresent,
}Fields§
§r: RouterStatusIntroItemr — Introduce a routerstatus entry
https://spec.torproject.org/dir-spec/consensus-formats.html#item:r (and, the md version, which is different).
m: FixedB64<32>m — Microdescriptor or document digest
In an md consensus, the hash of the document for this relay. In a vote, microdescriptor hashes for the various consensus methods.
https://spec.torproject.org/dir-spec/computing-consensus.html#flavor:microdesc
r item.
a: Vec<SocketAddr>a — Further router address(es) (IPv6)
https://spec.torproject.org/dir-spec/consensus-formats.html#item:a (and, the md version, which is different).
flags: DocRelayFlagss — Router status flags
https://spec.torproject.org/dir-spec/consensus-formats.html#item:s
version: Option<SoftwareVersion>v — Relay’s Tor software version
https://spec.torproject.org/dir-spec/consensus-formats.html#item:v
protos: Protocolspr — Subprotocol capabilities supported
https://spec.torproject.org/dir-spec/consensus-formats.html#item:v
weight: RelayWeightsItemw — Bandwidth estimates
https://spec.torproject.org/dir-spec/consensus-formats.html#item:w
port_policy: NotPresentp — Exit ports summary
https://spec.torproject.org/dir-spec/consensus-formats.html#item:p
This field is not properly parsed in plain consensuses by the old parser.
ed25519_id: NotPresentid — Relay’s (ed25519) identity
https://spec.torproject.org/dir-spec/consensus-formats.html#item:id
stats: NotPresentstats – Statistics for this relay
https://spec.torproject.org/dir-spec/consensus-formats.html#item:stats