pub struct Consensus<RS> { /* private fields */ }
Expand description
A single microdescriptor consensus netstatus
TODO: This should possibly turn into a parameterized type, to represent votes and ns consensuses.
Implementations
Return a slice of all the routerstatus entries in this consensus.
Return a mapping from keywords to integers representing how to weight different kinds of relays in different path positions.
Trait Implementations
type KeyHint = Vec<AuthCertKeyIds>
type KeyHint = Vec<AuthCertKeyIds>
A type that describes what keys are missing for this object.
Check whether k is the right key for this object. If not, return an error describing what key would be right. Read more
Check the signature on this object
Unwrap this object without checking any signatures on it.
Unwrap this object if it’s correctly signed by a provided key.
Auto Trait Implementations
impl<RS> RefUnwindSafe for Consensus<RS> where
RS: RefUnwindSafe,
impl<RS> UnwindSafe for Consensus<RS> where
RS: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more