Expand description
Logic for filtering and selecting channels in order to find suitable channels for a target.
Enums§
- Choice 🔒
- Similar to
Ordering
, but is easier to reason about when comparing two objects that don’t have a numeric sense of ordering (ex: returningGreater
is confusing if the ordering isn’t numeric).
Functions§
- choose_
best_ 🔒channel - Returns the best channel for
target
. - open_
channel_ 🔒is_ allowed - Returns
true
if the open channel is allowed to be used for a new channel request to the target. - pending_
channel_ 🔒maybe_ allowed - Returns
true
if the pending channel could possibly be used for a new channel request to the target. You still need to verify the final built channel withopen_channel_is_allowed
before using it.