pub struct PushPeerNewInput<Prev: Rec> { /* private fields */ }Available on crate feature
ovpn only.Implementations§
Source§impl<Prev: Rec> PushPeerNewInput<Prev>
impl<Prev: Rec> PushPeerNewInput<Prev>
pub fn new(prev: Prev) -> Self
pub fn end_nested(self) -> Prev
Sourcepub fn push_id(self, value: u32) -> Self
pub fn push_id(self, value: u32) -> Self
The unique ID of the peer in the device context. To be used to identify peers during operations for a specific device
Sourcepub fn push_remote_ipv4(self, value: Ipv4Addr) -> Self
pub fn push_remote_ipv4(self, value: Ipv4Addr) -> Self
The remote IPv4 address of the peer
Sourcepub fn push_remote_ipv6(self, value: &[u8]) -> Self
pub fn push_remote_ipv6(self, value: &[u8]) -> Self
The remote IPv6 address of the peer
Sourcepub fn push_remote_ipv6_scope_id(self, value: u32) -> Self
pub fn push_remote_ipv6_scope_id(self, value: u32) -> Self
The scope id of the remote IPv6 address of the peer (RFC2553)
Sourcepub fn push_remote_port(self, value: u16) -> Self
pub fn push_remote_port(self, value: u16) -> Self
The remote port of the peer
Sourcepub fn push_socket(self, value: u32) -> Self
pub fn push_socket(self, value: u32) -> Self
The socket to be used to communicate with the peer
Sourcepub fn push_vpn_ipv4(self, value: Ipv4Addr) -> Self
pub fn push_vpn_ipv4(self, value: Ipv4Addr) -> Self
The IPv4 address assigned to the peer by the server
Sourcepub fn push_vpn_ipv6(self, value: &[u8]) -> Self
pub fn push_vpn_ipv6(self, value: &[u8]) -> Self
The IPv6 address assigned to the peer by the server
Sourcepub fn push_local_ipv4(self, value: Ipv4Addr) -> Self
pub fn push_local_ipv4(self, value: Ipv4Addr) -> Self
The local IPv4 to be used to send packets to the peer (UDP only)
Sourcepub fn push_local_ipv6(self, value: &[u8]) -> Self
pub fn push_local_ipv6(self, value: &[u8]) -> Self
The local IPv6 to be used to send packets to the peer (UDP only)
Sourcepub fn push_keepalive_interval(self, value: u32) -> Self
pub fn push_keepalive_interval(self, value: u32) -> Self
The number of seconds after which a keep alive message is sent to the peer
Sourcepub fn push_keepalive_timeout(self, value: u32) -> Self
pub fn push_keepalive_timeout(self, value: u32) -> Self
The number of seconds from the last activity after which the peer is assumed dead
Trait Implementations§
Source§impl<Prev: Rec> Drop for PushPeerNewInput<Prev>
impl<Prev: Rec> Drop for PushPeerNewInput<Prev>
Auto Trait Implementations§
impl<Prev> Freeze for PushPeerNewInput<Prev>where
Prev: Freeze,
impl<Prev> RefUnwindSafe for PushPeerNewInput<Prev>where
Prev: RefUnwindSafe,
impl<Prev> Send for PushPeerNewInput<Prev>where
Prev: Send,
impl<Prev> Sync for PushPeerNewInput<Prev>where
Prev: Sync,
impl<Prev> Unpin for PushPeerNewInput<Prev>where
Prev: Unpin,
impl<Prev> UnsafeUnpin for PushPeerNewInput<Prev>where
Prev: UnsafeUnpin,
impl<Prev> UnwindSafe for PushPeerNewInput<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