Skip to main content

Module traits

Module traits 

Source
Expand description

Declare traits to be implemented by types that describe a place that Tor can connect to, directly or indirectly.

Re-exportsΒ§

use derive_deftly::derive_deftly_adhoc; πŸ”’
use itertools::Itertools; πŸ”’
use safelog::Redactable; πŸ”’
use std::fmt; πŸ”’
use std::iter::FusedIterator; πŸ”’
use std::net::IpAddr; πŸ”’
use std::net::SocketAddr; πŸ”’
use tor_llcrypto::pk; πŸ”’
use crate::ChannelMethod; πŸ”’
use crate::RelayIdRef; πŸ”’
use crate::RelayIdType; πŸ”’
use crate::RelayIdTypeIter; πŸ”’
use crate::PtTargetAddr; πŸ”’

StructsΒ§

DisplayChanTarget
A reference to a ChanTarget that implements Display using a hopefully useful format.
DisplayRelayIds
A helper type used to format the RelayIds in a HasRelayIds.
RelayIdIter
An iterator over all of the relay identities held by a HasRelayIds

TraitsΒ§

ChanTarget
Information about a Tor relay used to connect to it.
CircTarget
Information about a Tor relay used to extend a circuit to it.
DirectChanMethodsHelper
Implement HasChanMethods for an object with HasAddr whose addresses all represent a host we can connect to by a direct Tor connection at its IP addresses.
HasAddrs
An object that represents a host on the network which may have known IP addresses.
HasChanMethod
An object that can be connected to via ChannelMethods.
HasRelayIds
An object containing information about a relay’s identity keys.
HasRelayIdsLegacy
Legacy implementation helper for HasRelayIds.