pub struct MirrorConfig {
pub host: String,
pub ping_url: String,
pub headers: HashMap<String, String>,
pub health_check_interval: u64,
pub failure_limit: u8,
pub health_check_pause_elapsed: u64,
}Expand description
Configuration for registry mirror.
Fields§
§host: StringMirror server URL, for example http://127.0.0.1:65001.
ping_url: StringPing URL to check mirror server health.
headers: HashMap<String, String>HTTP request headers to be passed to mirror server.
health_check_interval: u64Interval for mirror health checking, in seconds.
failure_limit: u8Maximum number of failures before marking a mirror as unusable.
health_check_pause_elapsed: u64Elapsed time to pause mirror health check when the request is inactive, in seconds.
Trait Implementations§
Source§impl Clone for MirrorConfig
impl Clone for MirrorConfig
Source§fn clone(&self) -> MirrorConfig
fn clone(&self) -> MirrorConfig
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 MirrorConfig
impl Debug for MirrorConfig
Source§impl Default for MirrorConfig
impl Default for MirrorConfig
Source§impl<'de> Deserialize<'de> for MirrorConfig
impl<'de> Deserialize<'de> for MirrorConfig
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 MirrorConfig
impl PartialEq for MirrorConfig
Source§impl Serialize for MirrorConfig
impl Serialize for MirrorConfig
impl Eq for MirrorConfig
impl StructuralPartialEq for MirrorConfig
Auto Trait Implementations§
impl Freeze for MirrorConfig
impl RefUnwindSafe for MirrorConfig
impl Send for MirrorConfig
impl Sync for MirrorConfig
impl Unpin for MirrorConfig
impl UnwindSafe for MirrorConfig
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