Struct nydus_api::http::ProxyConfig
source · [−]pub struct ProxyConfig {
pub url: String,
pub ping_url: String,
pub fallback: bool,
pub check_interval: u64,
}Expand description
Configuration information for network proxy.
Fields
url: StringAccess remote storage backend via P2P proxy, e.g. Dragonfly dfdaemon server URL.
ping_url: StringEndpoint of P2P proxy health checking.
fallback: boolFallback to remote storage backend if P2P proxy ping failed.
check_interval: u64Interval of P2P proxy health checking, in seconds.
Trait Implementations
sourceimpl Clone for ProxyConfig
impl Clone for ProxyConfig
sourcefn clone(&self) -> ProxyConfig
fn clone(&self) -> ProxyConfig
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for ProxyConfig
impl Debug for ProxyConfig
sourceimpl Default for ProxyConfig
impl Default for ProxyConfig
sourceimpl<'de> Deserialize<'de> for ProxyConfig where
ProxyConfig: Default,
impl<'de> Deserialize<'de> for ProxyConfig where
ProxyConfig: Default,
sourcefn 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
sourceimpl Serialize for ProxyConfig
impl Serialize for ProxyConfig
Auto Trait Implementations
impl RefUnwindSafe for ProxyConfig
impl Send for ProxyConfig
impl Sync for ProxyConfig
impl Unpin for ProxyConfig
impl UnwindSafe for ProxyConfig
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more