Skip to main content

Module relay_flags

Module relay_flags 

Source
Expand description

Relay flags (aka Router Status Flags), eg in network status documents

Re-exportsยง

use std::collections::HashSet; ๐Ÿ”’
use std::fmt::Debug; ๐Ÿ”’
use std::fmt::Debug; ๐Ÿ”’
use std::marker::PhantomData; ๐Ÿ”’
use std::str::FromStr; ๐Ÿ”’
use enumset::EnumSet; ๐Ÿ”’
use enumset::EnumSetType; ๐Ÿ”’
use enumset::EnumSetType; ๐Ÿ”’
use enumset::enum_set; ๐Ÿ”’
use thiserror::Error; ๐Ÿ”’
use tor_error::internal; ๐Ÿ”’
use super::Unknown; ๐Ÿ”’

Modulesยง

doc_relay_flag ๐Ÿ”’
One relay flag that might be known or unknown, iterators, accessors
parse2_impl ๐Ÿ”’
New parser impl
parse_impl ๐Ÿ”’
Old parser impl

Structsยง

ConsensusRepr
How relay flags are represented in s in a consensus
DocRelayFlags
Router flags (aka relay flags), including, maybe, unknown ones
NoImplicitRepr
How relay flags are represented in s in a vote and a known-flags line
ParserEncoder
Parsing helper for a relay flags line (eg s item in a routerdesc)

Enumsยง

DocRelayFlag
One relay flag, known or unknown
RelayFlag
Router status flags - one recognized directory flag on a single relay.
RelayFlagsParseError
Problem parsing a relay flags line

Traitsยง

ReprMode
Additional options for the representation of relay flags in network documents

Type Aliasesยง

RelayFlags
Set of (known) router status flags
RelayFlagsBits
Raw bits value for RelayFlags