pub struct PushWgdevice<Prev: Rec> { /* private fields */ }Available on crate feature
wireguard only.Implementations§
Source§impl<Prev: Rec> PushWgdevice<Prev>
impl<Prev: Rec> PushWgdevice<Prev>
pub fn new(prev: Prev) -> Self
pub fn end_nested(self) -> Prev
pub fn push_ifindex(self, value: u32) -> Self
pub fn push_ifname(self, value: &CStr) -> Self
pub fn push_ifname_bytes(self, value: &[u8]) -> Self
Sourcepub fn push_private_key(self, value: &[u8]) -> Self
pub fn push_private_key(self, value: &[u8]) -> Self
Set to all zeros to remove.
pub fn push_public_key(self, value: &[u8]) -> Self
Sourcepub fn push_flags(self, value: u32) -> Self
pub fn push_flags(self, value: u32) -> Self
0 or WGDEVICE_F_REPLACE_PEERS if all current peers should be removed prior to adding the list below.
Associated type: “WgdeviceFlags” (enum)
Sourcepub fn push_listen_port(self, value: u16) -> Self
pub fn push_listen_port(self, value: u16) -> Self
Set as 0 to choose randomly.
Sourcepub fn push_fwmark(self, value: u32) -> Self
pub fn push_fwmark(self, value: u32) -> Self
Set as 0 to disable.
pub fn array_peers(self) -> PushArrayWgpeer<Self>
Trait Implementations§
Source§impl<Prev: Rec> Drop for PushWgdevice<Prev>
impl<Prev: Rec> Drop for PushWgdevice<Prev>
Auto Trait Implementations§
impl<Prev> Freeze for PushWgdevice<Prev>where
Prev: Freeze,
impl<Prev> RefUnwindSafe for PushWgdevice<Prev>where
Prev: RefUnwindSafe,
impl<Prev> Send for PushWgdevice<Prev>where
Prev: Send,
impl<Prev> Sync for PushWgdevice<Prev>where
Prev: Sync,
impl<Prev> Unpin for PushWgdevice<Prev>where
Prev: Unpin,
impl<Prev> UnwindSafe for PushWgdevice<Prev>where
Prev: UnwindSafe,
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