pub struct Mirror {
pub url: String,
pub protocol: Protocol,
pub completion_pct: f32,
pub delay: Option<i64>,
pub score: Option<f64>,
pub duration_stddev: Option<f64>,
pub last_sync: Option<DateTime<Utc>>,
pub ipv4: bool,
pub ipv6: bool,
pub isos: bool,
}
Expand description
An ArchLinux mirror
Fields§
§url: String
The mirror’s URL
protocol: Protocol
Represents a mirror’s protocol
completion_pct: f32
The number of mirror checks that have successfully connected and disconnected from the given URL. If it’s less than 100, it may be a sign of an unreliable mirror
delay: Option<i64>
The calculated average mirroring delay; e.g. the mean value of last_check − last_sync
for each check of this mirror URL. Any value under one hour should be viewed as ideal.
score: Option<f64>
A very rough calculation for ranking mirrors. It is currently calculated as (hours delay + average duration + standard deviation) / completion percentage
. Lower is better.
duration_stddev: Option<f64>
The standard deviation of the connect and retrieval time. A high standard deviation can indicate an unstable or overloaded mirror.
last_sync: Option<DateTime<Utc>>
Time when the last successful synchronisation occurred
ipv4: bool
ipv4 enabled
ipv6: bool
ipv6 enabled
isos: bool
isos enabled
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Mirror
impl<'de> Deserialize<'de> for Mirror
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>,
impl StructuralPartialEq for Mirror
Auto Trait Implementations§
impl Freeze for Mirror
impl RefUnwindSafe for Mirror
impl Send for Mirror
impl Sync for Mirror
impl Unpin for Mirror
impl UnwindSafe for Mirror
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more