Module tor_linkspec::decode
source · Available on crate feature
decode
only.Expand description
Analyze a list of link specifiers as a OwnedChanTarget
.
This functionality is used in the onion service subsystem, and for relays. The onion service subsystem uses this to decode a description of a relay as provided in a HsDesc or an INTRODUCE2 message; relays use this to handle EXTEND2 messages and figure out where to send a circuit.
Enums§
- An error that occurred while constructing a
ChanTarget
from a set of link specifiers. - A rule for how strictly to parse a list of LinkSpecifiers when converting it into an
OwnedChanTarget
.