Trait tor_netdoc::doc::netstatus::RouterStatus [−][src]
pub trait RouterStatus: Sealed {
type DocumentDigest: Clone;
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.
Associated Types
type DocumentDigest: Clone
type DocumentDigest: CloneA digest of the document that’s identified by this RouterStatus.
Required methods
fn rsa_identity(&self) -> &RsaIdentity
fn rsa_identity(&self) -> &RsaIdentityReturn RSA identity for the relay described by this RouterStatus
fn doc_digest(&self) -> &Self::DocumentDigest
fn doc_digest(&self) -> &Self::DocumentDigestReturn the digest of the document identified by this routerstatus.