Struct nydus_api::config::ProxyConfig
source · pub struct ProxyConfig {
pub url: String,
pub ping_url: String,
pub fallback: bool,
pub check_interval: u64,
pub use_http: bool,
}Expand description
Configuration information for network proxy.
Fields§
§url: StringAccess remote storage backend via proxy, e.g. Dragonfly dfdaemon server URL.
ping_url: StringProxy health checking endpoint.
fallback: boolFallback to remote storage backend if proxy ping failed.
check_interval: u64Interval for proxy health checking, in seconds.
use_http: boolReplace URL to http to request source registry with proxy, and allow fallback to https if the proxy is unhealthy.
Trait Implementations§
source§impl Clone for ProxyConfig
impl Clone for ProxyConfig
source§fn clone(&self) -> ProxyConfig
fn clone(&self) -> ProxyConfig
Returns a copy 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 ProxyConfig
impl Debug for ProxyConfig
source§impl Default for ProxyConfig
impl Default for ProxyConfig
source§impl<'de> Deserialize<'de> for ProxyConfig
impl<'de> Deserialize<'de> for ProxyConfig
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 PartialEq<ProxyConfig> for ProxyConfig
impl PartialEq<ProxyConfig> for ProxyConfig
source§fn eq(&self, other: &ProxyConfig) -> bool
fn eq(&self, other: &ProxyConfig) -> bool
This method tests for
self and other values to be equal, and is used
by ==.