Module 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ยง

ChanTargetDecodeError
An error that occurred while constructing a ChanTarget from a set of link specifiers.
Strictness
A rule for how strictly to parse a list of LinkSpecifiers when converting it into an OwnedChanTarget.