pub struct NetworkSettings {
pub subnet: String,
pub subnet_v6: Option<String>,
pub dns: Vec<String>,
pub dns_search: Vec<String>,
pub push_routes: Vec<String>,
pub redirect_gateway: bool,
pub mtu: u16,
}Expand description
Network settings
Fields§
§subnet: StringVPN subnet (e.g., “10.8.0.0/24”)
subnet_v6: Option<String>IPv6 subnet (optional)
dns: Vec<String>DNS servers to push to clients
dns_search: Vec<String>Search domains
push_routes: Vec<String>Routes to push to clients
redirect_gateway: boolEnable redirect-gateway (full tunnel)
mtu: u16MTU setting
Trait Implementations§
Source§impl Clone for NetworkSettings
impl Clone for NetworkSettings
Source§fn clone(&self) -> NetworkSettings
fn clone(&self) -> NetworkSettings
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NetworkSettings
impl Debug for NetworkSettings
Source§impl<'de> Deserialize<'de> for NetworkSettings
impl<'de> Deserialize<'de> for NetworkSettings
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
Auto Trait Implementations§
impl Freeze for NetworkSettings
impl RefUnwindSafe for NetworkSettings
impl Send for NetworkSettings
impl Sync for NetworkSettings
impl Unpin for NetworkSettings
impl UnwindSafe for NetworkSettings
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