Struct wireguard_uapi::xplatform::set::Device [−][src]
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>
Trait Implementations
impl Debug for Device
[src]
impl Default for Device
[src]
impl Display for Device
[src]
impl PartialEq<Device> for Device
[src]
impl StructuralPartialEq for Device
[src]
Auto Trait Implementations
impl RefUnwindSafe for Device
impl Send for Device
impl Sync for Device
impl Unpin for Device
impl UnwindSafe for Device
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,