pub enum Wgdevice<'a> {
Ifindex(u32),
Ifname(&'a CStr),
PrivateKey(&'a [u8]),
PublicKey(&'a [u8]),
Flags(u32),
ListenPort(u16),
Fwmark(u32),
Peers(IterableArrayWgpeer<'a>),
}Available on crate feature
wireguard only.Variants§
Ifindex(u32)
Ifname(&'a CStr)
PrivateKey(&'a [u8])
Set to all zeros to remove.
PublicKey(&'a [u8])
Flags(u32)
0 or WGDEVICE_F_REPLACE_PEERS if all current peers should be removed
prior to adding the list below.
Associated type: WgdeviceFlags (enum)
ListenPort(u16)
Set as 0 to choose randomly.
Fwmark(u32)
Set as 0 to disable.
Peers(IterableArrayWgpeer<'a>)
The index/type parameter is unused on SET_DEVICE operations and is
zero on GET_DEVICE operations.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Wgdevice<'a>
impl<'a> RefUnwindSafe for Wgdevice<'a>
impl<'a> Send for Wgdevice<'a>
impl<'a> Sync for Wgdevice<'a>
impl<'a> Unpin for Wgdevice<'a>
impl<'a> UnsafeUnpin for Wgdevice<'a>
impl<'a> UnwindSafe for Wgdevice<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more