Skip to main content

Module peer

Module peer 

Source
Expand description

Code for anything related to a peer as in the endpoint of a tor channel.

Peer information is put into a crate::channel::Channel which contains the information that has been used to connect to it.

Re-exportsยง

use std::net::IpAddr; ๐Ÿ”’
use std::net::SocketAddr; ๐Ÿ”’
use tor_linkspec::BridgeAddr; ๐Ÿ”’
use tor_linkspec::ChannelMethod; ๐Ÿ”’
use tor_linkspec::HasRelayIds; ๐Ÿ”’
use tor_linkspec::RelayIdRef; ๐Ÿ”’
use tor_linkspec::RelayIdType; ๐Ÿ”’
use tor_linkspec::RelayIds; ๐Ÿ”’
use tor_linkspec::PtTarget; ๐Ÿ”’
use tor_linkspec::PtTargetAddr; ๐Ÿ”’

Structsยง

PeerInfo
Represents the actual information about the peer of a crate::channel::Channel.

Enumsยง

PeerAddr
Represents the address of a connected peer used for a tor channel.