/// Check if it is local server type
Check if it is local server type
Check if it is local server type
pub fn is_local(self) -> bool {
        match self {
            ConfigType::Socks5Local => true,
            #[cfg(feature = "local-socks4")]
            ConfigType::Socks4Local => true,
            #[cfg(feature = "local-dns")]
            ConfigType::DnsLocal => true,
            #[cfg(feature = "local-tunnel")]
            ConfigType::TunnelLocal => true,
            #[cfg(feature = "local-http")]
            ConfigType::HttpLocal => true,
            #[cfg(all(
                feature = "local-http",
                any(feature = "local-http-native-tls", feature = "local-http-rustls")
            ))]
            ConfigType::HttpsLocal => true,
            #[cfg(feature = "local-redir")]
            ConfigType::RedirLocal => true,
            ConfigType::Server | ConfigType::Manager => false,
        }
    }
pub fn is_local ( self ) -> bool { match self { ConfigType :: Socks5Local => true , # [ cfg ( feature " " ) ] ConfigType :: Socks4Local => true , # [ cfg ( feature " " ) ] ConfigType :: DnsLocal => true , # [ cfg ( feature " " ) ] ConfigType :: TunnelLocal => true , # [ cfg ( feature " " ) ] ConfigType :: HttpLocal => true , # [ cfg ( all ( feature " " any ( feature " " feature " " ) ) ) ] ConfigType :: HttpsLocal => true , # [ cfg ( feature " " ) ] ConfigType :: RedirLocal => true , ConfigType :: Server | ConfigType :: Manager => false , } }
Check if it is local server type
Check if it is local server type
self
<not_specific>