pub struct WeightedRoundRobinBalancer { /* private fields */ }Expand description
Weighted round-robin endpoint selector.
Implementations§
Trait Implementations§
Source§impl Debug for WeightedRoundRobinBalancer
impl Debug for WeightedRoundRobinBalancer
Source§impl Default for WeightedRoundRobinBalancer
impl Default for WeightedRoundRobinBalancer
Source§fn default() -> WeightedRoundRobinBalancer
fn default() -> WeightedRoundRobinBalancer
Returns the “default value” for a type. Read more
Source§impl RpcEndpointSelector for WeightedRoundRobinBalancer
impl RpcEndpointSelector for WeightedRoundRobinBalancer
Source§fn select(
&self,
service: &str,
instances: &[ServiceInstance],
) -> Option<RpcEndpoint>
fn select( &self, service: &str, instances: &[ServiceInstance], ) -> Option<RpcEndpoint>
Selects one endpoint.
Auto Trait Implementations§
impl !Freeze for WeightedRoundRobinBalancer
impl RefUnwindSafe for WeightedRoundRobinBalancer
impl Send for WeightedRoundRobinBalancer
impl Sync for WeightedRoundRobinBalancer
impl Unpin for WeightedRoundRobinBalancer
impl UnsafeUnpin for WeightedRoundRobinBalancer
impl UnwindSafe for WeightedRoundRobinBalancer
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> 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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request