pub struct Config {
pub port: u64,
pub socks_port: u64,
pub redir_port: u64,
pub tproxy_port: u64,
pub mixed_port: u64,
pub allow_lan: bool,
pub ipv6: bool,
pub mode: Mode,
pub log_level: Level,
pub bind_address: String,
pub authentication: Vec<String>,
}
Fields§
§port: u64
§socks_port: u64
§redir_port: u64
§tproxy_port: u64
§mixed_port: u64
§allow_lan: bool
§ipv6: bool
§mode: Mode
§log_level: Level
§bind_address: String
§authentication: Vec<String>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Config
impl<'de> Deserialize<'de> for Config
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
Source§impl Ord for Config
impl Ord for Config
Source§impl PartialOrd for Config
impl PartialOrd for Config
impl Eq for Config
impl StructuralPartialEq for Config
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
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