pub struct WeightedBackend {
pub url: String,
pub weight: u32,
}Expand description
A single fixed backend URL together with a relative traffic weight.
A weight of 0 causes the backend to be skipped entirely.
Fields§
§url: String§weight: u32Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for WeightedBackend
impl RefUnwindSafe for WeightedBackend
impl Send for WeightedBackend
impl Sync for WeightedBackend
impl Unpin for WeightedBackend
impl UnsafeUnpin for WeightedBackend
impl UnwindSafe for WeightedBackend
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