Struct tor_netdoc::doc::netstatus::CommonHeader
source · #[non_exhaustive]pub struct CommonHeader {
pub flavor: ConsensusFlavor,
pub lifetime: Lifetime,
pub client_versions: Vec<String>,
pub relay_versions: Vec<String>,
pub client_protos: ProtoStatus,
pub relay_protos: ProtoStatus,
pub params: NetParams<i32>,
pub voting_delay: Option<(u32, u32)>,
}
Expand description
Parts of the networkstatus header that are present in every networkstatus.
NOTE: this type is separate from the header parts that are only in votes or only in consensuses, even though we don’t implement votes yet.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.flavor: ConsensusFlavor
dangerous-expose-struct-fields
only.What kind of consensus document is this? Absent in votes and in ns-flavored consensuses.
lifetime: Lifetime
dangerous-expose-struct-fields
only.Over what time is this consensus valid? (For votes, this is the time over which the voted-upon consensus should be valid.)
client_versions: Vec<String>
dangerous-expose-struct-fields
only.List of recommended Tor client versions.
relay_versions: Vec<String>
dangerous-expose-struct-fields
only.List of recommended Tor relay versions.
client_protos: ProtoStatus
dangerous-expose-struct-fields
only.Lists of recommended and required subprotocol versions for clients
relay_protos: ProtoStatus
dangerous-expose-struct-fields
only.Lists of recommended and required subprotocol versions for relays
params: NetParams<i32>
dangerous-expose-struct-fields
only.Declared parameters for tunable settings about how to the network should operator. Some of these adjust timeouts and whatnot; some features things on and off.
voting_delay: Option<(u32, u32)>
dangerous-expose-struct-fields
only.How long in seconds should voters wait for votes and signatures (respectively) to propagate?
Trait Implementations§
source§impl Clone for CommonHeader
impl Clone for CommonHeader
source§fn clone(&self) -> CommonHeader
fn clone(&self) -> CommonHeader
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl Freeze for CommonHeader
impl RefUnwindSafe for CommonHeader
impl Send for CommonHeader
impl Sync for CommonHeader
impl Unpin for CommonHeader
impl UnwindSafe for CommonHeader
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more