Struct arch_mirrors::url::Url [−][src]
pub struct Url {}Show fields
pub url: Url, pub protocol: Protocol, pub last_sync: Option<DateTime<Utc>>, pub completion_pct: f64, pub duration_average: Option<f64>, pub duration_stddev: Option<f64>, pub score: Option<f64>, pub active: bool, pub country: Country, pub isos: bool, pub ipv4: bool, pub ipv6: bool, pub details: String,
Expand description
An Arch Linux mirror and its statistics.
Fields
url: Url
The url of the mirror.
protocol: Protocol
The protocol that this mirror uses.
last_sync: Option<DateTime<Utc>>
The last time it synced from Arch Linux server.
completion_pct: f64
Completion PCT. Unknown what this means.
duration_average: Option<f64>
The average duration. Unknown what this means.
duration_stddev: Option<f64>
Duration StdDev. Unknown what this means.
score: Option<f64>
The score of the mirror. This is currently calculated as (hours delay + average duration + standard deviation) / completion percentage
.
Lower is better.
active: bool
Whether or not the mirror is active.
country: Country
The country where the mirror resides in.
isos: bool
Whether or not this mirror has Arch Linux ISOs(?)
ipv4: bool
Whether or not this mirror supports IPv4.
ipv6: bool
Whether or not this mirror supports IPv6.
details: String
The details of the mirror.
Trait Implementations
impl PartialOrd<Url> for Url
[src]
impl PartialOrd<Url> for Url
[src]fn partial_cmp(&self, other: &Url) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &Url) -> Option<Ordering>
[src]This method returns an ordering between self
and other
values if one exists. Read more
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than (for self
and other
) and is used by the <
operator. Read more
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl StructuralPartialEq for Url
[src]
Auto Trait Implementations
impl RefUnwindSafe for Url
impl Send for Url
impl Sync for Url
impl Unpin for Url
impl UnwindSafe for Url
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more