pub struct WeightedBackend {
pub url: String,
pub weight: u32,
}Expand description
A 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§
Source§impl Clone for WeightedBackend
impl Clone for WeightedBackend
Source§fn clone(&self) -> WeightedBackend
fn clone(&self) -> WeightedBackend
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 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