pub fn add_peer_with(
        self,
        pubkey: &Key,
        builder: impl Fn(PeerConfigBuilder) -> PeerConfigBuilder,
    ) -> Self {
        self.add_peer(builder(PeerConfigBuilder::new(pubkey)))
    }
/// Specifies a new peer configuration using a builder function.
///
/// This is simply a convenience method to make adding peers more fluent.
/// This method can be called more than once, and all peers will be added
/// to the configuration.
Specifies a new peer configuration using a builder function.
This is simply a convenience method to make adding peers more fluent.
This method can be called more than once, and all peers will be added
to the configuration.
Specifies a new peer configuration using a builder function . This is simply a convenience method to make adding peers more fluent . This method can be called more than once and all peers will be added to the configuration .
pub fn add_peer_with(
        self,
        pubkey: &Key,
        builder: impl Fn(PeerConfigBuilder) -> PeerConfigBuilder,
    ) -> Self {
        self.add_peer(builder(PeerConfigBuilder::new(pubkey)))
    }
pub fn add_peer_with ( self , pubkey : & Key , builder : impl Fn ( PeerConfigBuilder ) -> PeerConfigBuilder , ) -> Self { self . add_peer ( builder ( PeerConfigBuilder :: new ( pubkey ) ) ) }
Specifies a new peer configuration using a builder function.
Specifies a new peer configuration using a builder function .
self
pubkey
&Key
builder
impl Fn(PeerConfigBuilder) -> PeerConfigBuilder
self
pubkey
&Key
builder
impl Fn(PeerConfigBuilder) -> PeerConfigBuilder