pub struct UriState {
pub uri: String,
pub tried: bool,
pub used: bool,
pub last_result: Option<String>,
pub speed_bytes_per_sec: Option<u64>,
}Expand description
Per-URI state tracking for mirror management
Tracks which mirrors have been attempted, their success/failure history, and observed performance characteristics.
Fields§
§uri: StringSource URI string
tried: boolWhether this URI has been attempted at least once
used: boolWhether this URI is currently in use (active connection)
last_result: Option<String>Last result: “ok” on success, error message on failure
speed_bytes_per_sec: Option<u64>Observed download speed from this URI (bytes/second)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for UriState
impl<'de> Deserialize<'de> for UriState
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
Auto Trait Implementations§
impl Freeze for UriState
impl RefUnwindSafe for UriState
impl Send for UriState
impl Sync for UriState
impl Unpin for UriState
impl UnsafeUnpin for UriState
impl UnwindSafe for UriState
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