pub struct ProxyCandidate {
pub id: Uuid,
pub weight: u32,
pub metrics: Arc<ProxyMetrics>,
pub healthy: bool,
}Expand description
A lightweight view of a proxy considered for selection.
Strategies operate on slices of ProxyCandidate values built from the live
proxy pool. The metrics field allows latency- or usage-aware selection
without acquiring a write lock.
Fields§
§id: UuidStable identifier matching the ProxyRecord.
weight: u32Relative weight used by WeightedStrategy.
metrics: Arc<ProxyMetrics>Shared atomics updated by every request through this proxy.
healthy: boolWhether the proxy currently passes health checks.
Trait Implementations§
Source§impl Clone for ProxyCandidate
impl Clone for ProxyCandidate
Source§fn clone(&self) -> ProxyCandidate
fn clone(&self) -> ProxyCandidate
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 moreAuto Trait Implementations§
impl Freeze for ProxyCandidate
impl RefUnwindSafe for ProxyCandidate
impl Send for ProxyCandidate
impl Sync for ProxyCandidate
impl Unpin for ProxyCandidate
impl UnsafeUnpin for ProxyCandidate
impl UnwindSafe for ProxyCandidate
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