Skip to main content

RelayFlags

Type Alias RelayFlags 

Source
pub type RelayFlags = EnumSet<RelayFlag>;
Expand description

Set of (known) router status flags

Set of RelayFlag, in a cheap and compact representation.

Can contain only flags known to this implementation. This is a newtype around a machine integer.

Does not implement ItemValueParseable. Parsing (and encoding) is different in different documents. Use an appropriate parameterised ParserEncoder, in #[deftly(netdoc(with))].

To also maybe handle unknown flags, use DocRelayFlags.

https://spec.torproject.org/dir-spec/consensus-formats.html#item:s

Aliased Typeยง

#[repr(transparent)]
pub struct RelayFlags { /* private fields */ }