pub enum SystemProxyCapability {
InspectEnvironment,
InspectMacosNetworksetup,
ApplyMacosNetworksetup,
InspectWindowsInternetSettings,
ApplyWindowsInternetSettings,
InspectGnomeSettings,
ApplyGnomeSettings,
InspectKdeSettings,
ApplyKdeSettings,
}Expand description
Platform-specific capabilities for system proxy inspection and mutation.
Variants§
InspectEnvironment
Read HTTP_PROXY / HTTPS_PROXY / ALL_PROXY environment variables.
InspectMacosNetworksetup
Read proxy settings via macOS networksetup command.
ApplyMacosNetworksetup
Apply proxy settings via macOS networksetup command.
InspectWindowsInternetSettings
Read proxy settings via Windows Internet Settings (registry).
ApplyWindowsInternetSettings
Apply proxy settings via Windows Internet Settings (registry).
InspectGnomeSettings
Read proxy settings via GNOME gsettings or dconf.
ApplyGnomeSettings
Apply proxy settings via GNOME gsettings.
InspectKdeSettings
Read proxy settings via KDE kwriteconfig5.
ApplyKdeSettings
Apply proxy settings via KDE kwriteconfig5.
Trait Implementations§
Source§impl Clone for SystemProxyCapability
impl Clone for SystemProxyCapability
Source§fn clone(&self) -> SystemProxyCapability
fn clone(&self) -> SystemProxyCapability
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 SystemProxyCapability
Source§impl Debug for SystemProxyCapability
impl Debug for SystemProxyCapability
Source§impl<'de> Deserialize<'de> for SystemProxyCapability
impl<'de> Deserialize<'de> for SystemProxyCapability
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 Display for SystemProxyCapability
impl Display for SystemProxyCapability
impl Eq for SystemProxyCapability
Source§impl Hash for SystemProxyCapability
impl Hash for SystemProxyCapability
Source§impl PartialEq for SystemProxyCapability
impl PartialEq for SystemProxyCapability
Source§impl Serialize for SystemProxyCapability
impl Serialize for SystemProxyCapability
impl StructuralPartialEq for SystemProxyCapability
Auto Trait Implementations§
impl Freeze for SystemProxyCapability
impl RefUnwindSafe for SystemProxyCapability
impl Send for SystemProxyCapability
impl Sync for SystemProxyCapability
impl Unpin for SystemProxyCapability
impl UnsafeUnpin for SystemProxyCapability
impl UnwindSafe for SystemProxyCapability
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