Expand description
Logic for filtering and selecting channels in order to find suitable channels for a target.
Re-exportsΒ§
use crate::mgr::AbstractChannel;πuse crate::mgr::state::ChannelState;πuse crate::mgr::state::OpenEntry;πuse crate::mgr::state::PendingEntry;πuse tor_linkspec::HasChanMethod;πuse tor_linkspec::HasRelayIds;πuse tor_linkspec::RelayIds;π
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: returningGreateris confusing if the ordering isnβt numeric).
FunctionsΒ§
- choose_
best_ πchannel - Returns the best channel for
target. - open_
channel_ πis_ allowed - Returns
trueif the open channel is allowed to be used for a new channel request to the target. - pending_
channel_ πmaybe_ allowed - Returns
trueif 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_allowedbefore using it.