pub struct ServerInstanceConfig {
pub config: ServerConfig,
pub acl: Option<AccessControl>,
pub outbound_fwmark: Option<u32>,
pub outbound_bind_addr: Option<IpAddr>,
pub outbound_bind_interface: Option<String>,
pub outbound_udp_allow_fragmentation: Option<bool>,
}Expand description
Server instance config
Fields§
§config: ServerConfigServer’s config
acl: Option<AccessControl>Server’s private ACL, set to None will use the global AccessControl
outbound_fwmark: Option<u32>Server’s outbound fwmark / address / interface to support split tunnel
outbound_bind_addr: Option<IpAddr>§outbound_bind_interface: Option<String>§outbound_udp_allow_fragmentation: Option<bool>Implementations§
Source§impl ServerInstanceConfig
impl ServerInstanceConfig
Sourcepub fn with_server_config(config: ServerConfig) -> Self
pub fn with_server_config(config: ServerConfig) -> Self
Create with ServerConfig
Trait Implementations§
Source§impl Clone for ServerInstanceConfig
impl Clone for ServerInstanceConfig
Source§fn clone(&self) -> ServerInstanceConfig
fn clone(&self) -> ServerInstanceConfig
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 moreAuto Trait Implementations§
impl Freeze for ServerInstanceConfig
impl RefUnwindSafe for ServerInstanceConfig
impl Send for ServerInstanceConfig
impl Sync for ServerInstanceConfig
impl Unpin for ServerInstanceConfig
impl UnwindSafe for ServerInstanceConfig
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