Module state

Source
Expand description

Simple implementation for the internal map state of a ChanMgr.

Structs§

ChannelParams 🔒
Parameters for channels that we create, and that all existing channels are using
Inner 🔒
A map from channel id to channel state, plus necessary auxiliary state - inside lock
MgrState 🔒
All mutable state held by an AbstractChannelMgr.
NetParamsExtract 🔒
Extract from a NetParameters which we need, conveniently organized for our processing
OpenEntry 🔒
An open channel entry.
PendingChannelHandle 🔒
A handle for a pending channel.
PendingEntry 🔒
An entry for a not-yet-build channel
UniqPendingChanId 🔒
A unique ID for a pending (PendingEntry) channel.

Enums§

ChannelForTarget 🔒
A channel for a given target relay.
ChannelState 🔒
The state of a channel (or channel build attempt) within a map.

Functions§

kist_mode_from_net_parameter 🔒
Build a KistMode from NetParameters.
padding_parameters 🔒
Given a NetDirExtract and whether we’re reducing padding, return a PaddingParameters
padding_parameters_builder 🔒
Given a NetDirExtract and whether we’re reducing padding, return a PaddingParametersBuilder
parameterize 🔒
Converts config, dormancy, and netdir, into parameter updates
remove_pending 🔒
Helper: remove the pending channel identified by handle from channel_map.
setup_launch 🔒
Helper: return the objects used to inform pending tasks about a newly open or failed channel.

Type Aliases§

NfIto 🔒
Type of the nf_ito_* netdir parameters, convenience alias