Struct wireguard_control::PeerConfig [−][src]
pub struct PeerConfig {
pub public_key: Key,
pub preshared_key: Option<Key>,
pub endpoint: Option<SocketAddr>,
pub persistent_keepalive_interval: Option<u16>,
pub allowed_ips: Vec<AllowedIp>,
// some fields omitted
}
Expand description
Represents a single peer’s configuration (i.e. persistent attributes).
These are the attributes that don’t change over time and are part of the configuration.
Fields
public_key: Key
The public key of the peer.
The preshared key available to both peers (None
means no PSK is used).
endpoint: Option<SocketAddr>
The endpoint this peer listens for connections on (None
means any).
persistent_keepalive_interval: Option<u16>
The interval for sending keepalive packets (None
means disabled).
allowed_ips: Vec<AllowedIp>
The IP addresses this peer is allowed to have.
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for PeerConfig
impl Send for PeerConfig
impl Sync for PeerConfig
impl Unpin for PeerConfig
impl UnwindSafe for PeerConfig
Blanket Implementations
Mutably borrows from an owned value. Read more