Struct wireguard_uapi::xplatform::set::Device
source · pub struct Device {
pub private_key: Option<[u8; 32]>,
pub listen_port: Option<u16>,
pub fwmark: Option<u32>,
pub replace_peers: Option<bool>,
pub peers: Vec<Peer>,
}
Expand description
Documentation of each field comes from: https://www.wireguard.com/xplatform/#configuration-protocol
Fields§
§private_key: Option<[u8; 32]>
The value for this key should be a lowercase hex-encoded private key of the interface. The value may be an all zero string in the case of a set operation, in which case it indicates that the private key should be removed.
listen_port: Option<u16>
The value for this is a decimal-string integer corresponding to the listening port of the interface.
fwmark: Option<u32>
The value for this is a decimal-string integer corresponding to the fwmark of the interface. The value may 0 in the case of a set operation, in which case it indicates that the fwmark should be removed.
replace_peers: Option<bool>
This key/value combo is only valid in a set operation, in which case it indicates that the subsequent peers (perhaps an empty list) should replace any existing peers, rather than append to the existing peer list.
peers: Vec<Peer>