pub type SimpleRefPeerManager<'a, 'b, 'c, 'd, 'e, 'f, 'g, 'h, 'i, 'j, 'k, 'l, 'm, 'n, SD, M, T, F, C, L> = PeerManager<SD, &'n ChannelManager<&'a M, &'b T, &'c KeysManager, &'c KeysManager, &'c KeysManager, &'d F, &'e DefaultRouter<&'f NetworkGraph<&'g L>, &'g L, &'m Mutex<ProbabilisticScorerUsingTime<&'f NetworkGraph<&'g L>, &'g L, MonotonicTime>>, ProbabilisticScoringFeeParameters, ProbabilisticScorerUsingTime<&'f NetworkGraph<&'g L>, &'g L, MonotonicTime>>, &'g L>, &'f P2PGossipSync<&'g NetworkGraph<&'f L>, &'h C, &'f L>, &'i OnionMessenger<&'g KeysManager, &'g KeysManager, &'m L, &'n DefaultMessageRouter, IgnoringMessageHandler, IgnoringMessageHandler>, &'f L, IgnoringMessageHandler, &'c KeysManager>;
Expand description

SimpleRefPeerManager is a type alias for a PeerManager reference, and is the reference counterpart to the SimpleArcPeerManager type alias. Use this type by default when you don’t need a PeerManager 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 helps with issues such as long function definitions.

This is not exported to bindings users as general type aliases don’t make sense in bindings.

Aliased Type§

struct SimpleRefPeerManager<'a, 'b, 'c, 'd, 'e, 'f, 'g, 'h, 'i, 'j, 'k, 'l, 'm, 'n, SD, M, T, F, C, L> { /* private fields */ }