pub struct Balancer<P, S> {
pub policy: P,
pub instances: Vec<S>,
pub fallback: S,
}Fields§
§policy: P§instances: Vec<S>§fallback: SImplementations§
Trait Implementations§
Auto Trait Implementations§
impl<P, S> Freeze for Balancer<P, S>
impl<P, S> RefUnwindSafe for Balancer<P, S>where
P: RefUnwindSafe,
S: RefUnwindSafe,
impl<P, S> Send for Balancer<P, S>
impl<P, S> Sync for Balancer<P, S>
impl<P, S> Unpin for Balancer<P, S>
impl<P, S> UnwindSafe for Balancer<P, S>where
P: UnwindSafe,
S: UnwindSafe,
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