breez_sdk_liquid::lightning::ln::channelmanager

Type Alias SimpleRefChannelManager

pub type SimpleRefChannelManager<'a, 'b, 'c, 'd, 'e, 'f, 'g, 'h, M, T, F, L> = ChannelManager<&'a M, &'b T, &'c KeysManager, &'c KeysManager, &'c KeysManager, &'d F, &'e DefaultRouter<&'f NetworkGraph<&'g L>, &'g L, &'h RwLock<ProbabilisticScorerUsingTime<&'f NetworkGraph<&'g L>, &'g L, MonotonicTime>>, ProbabilisticScoringFeeParameters, ProbabilisticScorerUsingTime<&'f NetworkGraph<&'g L>, &'g L, MonotonicTime>>, &'g L>;
Expand description

SimpleRefChannelManager is a type alias for a ChannelManager reference, and is the reference counterpart to the SimpleArcChannelManager type alias. Use this type by default when you don’t need a ChannelManager with a static lifetime. You’ll need a static lifetime in cases such as usage of lightning-net-tokio (since tokio::spawn requires parameters with static lifetimes). But if this is not necessary, using a reference is more efficient. Defining these type aliases issues such as overly long function definitions. Note that the ChannelManager can take any type that implements NodeSigner, EntropySource, and SignerProvider for its keys manager, or, respectively, Router for its router, but this type alias chooses the concrete types of KeysManager and DefaultRouter.

This is not exported to bindings users as type aliases aren’t supported in most languages.

Aliased Type§

struct SimpleRefChannelManager<'a, 'b, 'c, 'd, 'e, 'f, 'g, 'h, M, T, F, L> { /* private fields */ }