Trait tor_netdoc::doc::netstatus::RouterStatus   
source · pub trait RouterStatus: Sealed {
    type DocumentDigest: Clone;
    // Required methods
    fn rsa_identity(&self) -> &RsaIdentity;
    fn doc_digest(&self) -> &Self::DocumentDigest;
}Expand description
Represents a single relay as listed in a consensus document.
Not implementable outside of the tor-netdoc crate.
Required Associated Types§
sourcetype DocumentDigest: Clone
 
type DocumentDigest: Clone
A digest of the document that’s identified by this RouterStatus.
Required Methods§
sourcefn rsa_identity(&self) -> &RsaIdentity
 
fn rsa_identity(&self) -> &RsaIdentity
Return RSA identity for the relay described by this RouterStatus
sourcefn doc_digest(&self) -> &Self::DocumentDigest
 
fn doc_digest(&self) -> &Self::DocumentDigest
Return the digest of the document identified by this routerstatus.
Implementors§
source§impl RouterStatus for MdConsensusRouterStatus
 
impl RouterStatus for MdConsensusRouterStatus
type DocumentDigest = [u8; 32]
source§impl RouterStatus for NsConsensusRouterStatus
Available on crate feature ns_consensus only. 
impl RouterStatus for NsConsensusRouterStatus
Available on crate feature 
ns_consensus only.