pub struct LoadBalanceService<LB, D, S> { /* private fields */ }Available on crate feature
client only.Expand description
Service for load balance generated by LoadBalanceLayer
Trait Implementations§
Source§impl<LB: Clone, D: Clone, S: Clone> Clone for LoadBalanceService<LB, D, S>
impl<LB: Clone, D: Clone, S: Clone> Clone for LoadBalanceService<LB, D, S>
Source§fn clone(&self) -> LoadBalanceService<LB, D, S>
fn clone(&self) -> LoadBalanceService<LB, D, S>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<LB, D, S> Debug for LoadBalanceService<LB, D, S>
impl<LB, D, S> Debug for LoadBalanceService<LB, D, S>
Source§impl<LB, D, S, B> Service<ClientContext, Request<B>> for LoadBalanceService<LB, D, S>where
LB: LoadBalance<D>,
D: Discover,
S: Service<ClientContext, Request<B>, Error = ClientError> + Send + Sync,
B: Send,
impl<LB, D, S, B> Service<ClientContext, Request<B>> for LoadBalanceService<LB, D, S>where
LB: LoadBalance<D>,
D: Discover,
S: Service<ClientContext, Request<B>, Error = ClientError> + Send + Sync,
B: Send,
Auto Trait Implementations§
impl<LB, D, S> Freeze for LoadBalanceService<LB, D, S>
impl<LB, D, S> RefUnwindSafe for LoadBalanceService<LB, D, S>
impl<LB, D, S> Send for LoadBalanceService<LB, D, S>
impl<LB, D, S> Sync for LoadBalanceService<LB, D, S>
impl<LB, D, S> Unpin for LoadBalanceService<LB, D, S>
impl<LB, D, S> UnwindSafe for LoadBalanceService<LB, D, S>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T, Cx, Req> ServiceExt<Cx, Req> for Twhere
T: Service<Cx, Req>,
impl<T, Cx, Req> ServiceExt<Cx, Req> for Twhere
T: Service<Cx, Req>,
Source§fn map_err<E, F>(self, f: F) -> MapErr<T, F>
fn map_err<E, F>(self, f: F) -> MapErr<T, F>
Maps this service’s error value to a different value. Read more
Source§fn map_response<F, Response>(self, f: F) -> MapResponse<T, F>
fn map_response<F, Response>(self, f: F) -> MapResponse<T, F>
Maps this service’s response value to a different value. Read more