Struct wgctrl_rs::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
}

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

The public key of the peer.

The preshared key available to both peers (None means no PSK is used).

The endpoint this peer listens for connections on (None means any).

The interval for sending keepalive packets (None means disabled).

The IP addresses this peer is allowed to have.

Trait Implementations

impl Debug for PeerConfig
[src]

Formats the value using the given formatter. Read more

impl PartialEq for PeerConfig
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for PeerConfig
[src]

impl Clone for PeerConfig
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl Send for PeerConfig

impl Sync for PeerConfig