pub struct LbConfig<L, D> { /* private fields */ }Available on crate feature
client only.Expand description
Load balance layer generator with a LoadBalance and a Discover
Implementations§
Source§impl<L, D> LbConfig<L, D>
impl<L, D> LbConfig<L, D>
Sourcepub fn new(load_balance: L, discover: D) -> Self
pub fn new(load_balance: L, discover: D) -> Self
Create a new LbConfig using a LoadBalance and a Discover
Sourcepub fn load_balance<NL>(self, load_balance: NL) -> LbConfig<NL, D>
pub fn load_balance<NL>(self, load_balance: NL) -> LbConfig<NL, D>
Set a LoadBalance to the LbConfig and replace the previous one
Trait Implementations§
Auto Trait Implementations§
impl<L, D> Freeze for LbConfig<L, D>
impl<L, D> RefUnwindSafe for LbConfig<L, D>where
L: RefUnwindSafe,
D: RefUnwindSafe,
impl<L, D> Send for LbConfig<L, D>
impl<L, D> Sync for LbConfig<L, D>
impl<L, D> Unpin for LbConfig<L, D>
impl<L, D> UnwindSafe for LbConfig<L, D>where
L: UnwindSafe,
D: 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