pub struct HttpProxyConfig {
pub addr: String,
pub path: String,
pub skip_verify: bool,
pub timeout: u32,
pub connect_timeout: u32,
pub retry_limit: u8,
pub proxy: ProxyConfig,
pub mirrors: Vec<MirrorConfig>,
}Expand description
Http proxy configuration information to access blobs.
Fields§
§addr: StringAddress of http proxy server, like http://xxx.xxx or https://xxx.xxx or /path/to/unix.sock.
path: StringPath to access the blobs, like /<_namespace>/<_repo>/blobs.
If the http proxy server is over unix socket, this field will be ignored.
skip_verify: boolSkip SSL certificate validation for HTTPS scheme.
timeout: u32Drop the read request once http request timeout, in seconds.
connect_timeout: u32Drop the read request once http connection timeout, in seconds.
retry_limit: u8Retry count when read request failed.
proxy: ProxyConfigEnable HTTP proxy for the read request.
mirrors: Vec<MirrorConfig>Enable mirrors for the read request.
Trait Implementations§
Source§impl Clone for HttpProxyConfig
impl Clone for HttpProxyConfig
Source§fn clone(&self) -> HttpProxyConfig
fn clone(&self) -> HttpProxyConfig
Returns a duplicate 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 HttpProxyConfig
impl Debug for HttpProxyConfig
Source§impl Default for HttpProxyConfig
impl Default for HttpProxyConfig
Source§fn default() -> HttpProxyConfig
fn default() -> HttpProxyConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for HttpProxyConfig
impl<'de> Deserialize<'de> for HttpProxyConfig
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 for HttpProxyConfig
impl PartialEq for HttpProxyConfig
Source§impl Serialize for HttpProxyConfig
impl Serialize for HttpProxyConfig
impl Eq for HttpProxyConfig
impl StructuralPartialEq for HttpProxyConfig
Auto Trait Implementations§
impl Freeze for HttpProxyConfig
impl RefUnwindSafe for HttpProxyConfig
impl Send for HttpProxyConfig
impl Sync for HttpProxyConfig
impl Unpin for HttpProxyConfig
impl UnwindSafe for HttpProxyConfig
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