pub trait CircTarget: ChanTarget {
    // Required methods
    fn ntor_onion_key(&self) -> &PublicKey;
    fn protovers(&self) -> &Protocols;

    // Provided method
    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§

source

fn ntor_onion_key(&self) -> &PublicKey

Return the ntor onion key for this relay

source

fn protovers(&self) -> &Protocols

Return the subprotocols implemented by this relay.

Provided Methods§

source

fn linkspecs(&self) -> Vec<LinkSpec>

Return a new vector of link specifiers for this relay.

Implementors§