pub struct LoadBalancer<S: Supplier> { /* private fields */ }Implementations§
Source§impl<S: Supplier> LoadBalancer<S>
impl<S: Supplier> LoadBalancer<S>
pub fn new(supplier: S, policy: LoadBalancerPolicy<S::Element>) -> Self
Trait Implementations§
Source§impl<S> LoadBalancerTrait for LoadBalancer<S>
impl<S> LoadBalancerTrait for LoadBalancer<S>
Source§fn choose<'life0, 'life1, 'async_trait>(
&'life0 self,
extensions: &'life1 mut Extensions,
) -> Pin<Box<dyn Future<Output = Result<Option<Self::Element>, Self::Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn choose<'life0, 'life1, 'async_trait>(
&'life0 self,
extensions: &'life1 mut Extensions,
) -> Pin<Box<dyn Future<Output = Result<Option<Self::Element>, Self::Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
load balancer choose a effect element
Auto Trait Implementations§
impl<S> !RefUnwindSafe for LoadBalancer<S>
impl<S> !UnwindSafe for LoadBalancer<S>
impl<S> Freeze for LoadBalancer<S>where
S: Freeze,
impl<S> Send for LoadBalancer<S>where
S: Send,
impl<S> Sync for LoadBalancer<S>where
S: Sync,
impl<S> Unpin for LoadBalancer<S>where
S: Unpin,
impl<S> UnsafeUnpin for LoadBalancer<S>where
S: UnsafeUnpin,
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