pub struct ClientNetworkConfig {
pub client_ip: Ipv4Addr,
pub server_vpn_ip: Ipv4Addr,
pub prefix_len: u8,
pub mtu: u16,
pub mdh_len: u16,
}Fields§
§client_ip: Ipv4Addr§server_vpn_ip: Ipv4Addr§prefix_len: u8§mtu: u16§mdh_len: u16Mask-dependent header length in bytes. Clients MUST use this value for MDH generation and parsing. Defaults to 20 (STUN/WebRTC mask) for backward compatibility.
Implementations§
Trait Implementations§
Source§impl Clone for ClientNetworkConfig
impl Clone for ClientNetworkConfig
Source§fn clone(&self) -> ClientNetworkConfig
fn clone(&self) -> ClientNetworkConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ClientNetworkConfig
Source§impl Debug for ClientNetworkConfig
impl Debug for ClientNetworkConfig
Source§impl<'de> Deserialize<'de> for ClientNetworkConfig
impl<'de> Deserialize<'de> for ClientNetworkConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ClientNetworkConfig
Source§impl PartialEq for ClientNetworkConfig
impl PartialEq for ClientNetworkConfig
Source§fn eq(&self, other: &ClientNetworkConfig) -> bool
fn eq(&self, other: &ClientNetworkConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ClientNetworkConfig
impl Serialize for ClientNetworkConfig
impl StructuralPartialEq for ClientNetworkConfig
Auto Trait Implementations§
impl Freeze for ClientNetworkConfig
impl RefUnwindSafe for ClientNetworkConfig
impl Send for ClientNetworkConfig
impl Sync for ClientNetworkConfig
impl Unpin for ClientNetworkConfig
impl UnsafeUnpin for ClientNetworkConfig
impl UnwindSafe for ClientNetworkConfig
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