pub fn new(public_key: &Key) -> Self {
        PeerConfigBuilder {
            public_key: public_key.clone(),
            preshared_key: None,
            endpoint: None,
            persistent_keepalive_interval: None,
            allowed_ips: vec![],
            replace_allowed_ips: false,
            remove_me: false,
        }
    }
/// Creates a new `PeerConfigBuilder` that does nothing when applied.
Creates a new `PeerConfigBuilder` that does nothing when applied.
Creates a new ` PeerConfigBuilder ` that does nothing when applied .
pub fn new(public_key: &Key) -> Self {
        PeerConfigBuilder {
            public_key: public_key.clone(),
            preshared_key: None,
            endpoint: None,
            persistent_keepalive_interval: None,
            allowed_ips: vec![],
            replace_allowed_ips: false,
            remove_me: false,
        }
    }
pub fn new ( public_key : & Key ) -> Self { PeerConfigBuilder { public_key : public_key . clone ( ) , preshared_key : None , endpoint : None , persistent_keepalive_interval : None , allowed_ips : vec ! [ ] , replace_allowed_ips : false , remove_me : false , } }
Creates a new `PeerConfigBuilder` that does nothing when applied.
Creates a new ` PeerConfigBuilder ` that does nothing when applied .
public_key
&Key
public_key
&Key