Trait tor_linkspec::CircTarget
source · pub trait CircTarget: ChanTarget {
fn ntor_onion_key(&self) -> &PublicKey;
fn protovers(&self) -> &Protocols;
fn linkspecs(&self) -> Vec<LinkSpec> ⓘ { ... }
}Expand description
Information about a Tor relay used to extend a circuit to it.
Anything that implements ‘CircTarget’ can be used as the identity of a relay for the purposes of extending a circuit.
Required Methods§
sourcefn ntor_onion_key(&self) -> &PublicKey
fn ntor_onion_key(&self) -> &PublicKey
Return the ntor onion key for this relay