Expand description
Types and traits for converting objects to addresses which Tor can connect to.
Re-exportsΒ§
use crate::StreamPrefs;πuse crate::err::ErrorDetail;πuse std::fmt::Display;πuse std::net::IpAddr;πuse std::net::Ipv4Addr;πuse std::net::Ipv6Addr;πuse std::net::SocketAddr;πuse std::net::SocketAddrV4;πuse std::net::SocketAddrV6;πuse std::str::FromStr;πuse thiserror::Error;πuse tor_basic_utils::StrExt;πuse tor_error::ErrorKind;πuse tor_error::HasKind;πuse tor_hscrypto::pk::HSID_ONION_SUFFIX;πuse tor_hscrypto::pk::HsId;π
StructsΒ§
- TorAddr
- An address object that you can connect to over the Tor network.
EnumsΒ§
- Host π
- A host that Tor can connect to: either a hostname or an IP address.
- Resolve
Instructions π - How to resolve this Tor host address into IP address(es)
- Stream
Instructions π - How to make a stream to this
TorAddr? - TorAddr
Error - An error created while making or using a
TorAddr.
TraitsΒ§
- Dangerously
Into TorAddr - An object that can be converted to a
TorAddr, but which it might be risky to get in the first place if youβre hoping for anonymity. - Into
TorAddr - An object that can be converted to a
TorAddrwith a minimum of risk.
FunctionsΒ§
- is_
globally_ πreachable_ unicast - Return true if
addris a globally reachable unicast address. - is_
shared π - Returns
trueif this address is part of the Shared Address Space defined in IETF RFC 6598 (100.64.0.0/10). - is_
valid_ πhostname - Check whether
hostnameis a valid hostname or not.