Struct tower_balance::p2c::BalanceMake [−][src]
Makes Balancer
s given an inner service that makes Discover
s.
Implementations
impl<S, Req> BalanceMake<S, Req>
[src][−]
pub fn from_entropy(make_discover: S) -> Self
[src][−]
Initializes a P2C load balancer from the OS’s entropy source.
Trait Implementations
impl<S: Clone, Req: Clone> Clone for BalanceMake<S, Req>
[src][+]
impl<S: Debug, Req: Debug> Debug for BalanceMake<S, Req>
[src][+]
impl<S, Target, Req> Service<Target> for BalanceMake<S, Req> where
S: Service<Target>,
S::Response: Discover,
<S::Response as Discover>::Service: Service<Req>,
<<S::Response as Discover>::Service as Service<Req>>::Error: Into<Box<dyn Error + Send + Sync>>,
[src][+]
S: Service<Target>,
S::Response: Discover,
<S::Response as Discover>::Service: Service<Req>,
<<S::Response as Discover>::Service as Service<Req>>::Error: Into<Box<dyn Error + Send + Sync>>,
Auto Trait Implementations
impl<S, Req> RefUnwindSafe for BalanceMake<S, Req> where
S: RefUnwindSafe,
S: RefUnwindSafe,
impl<S, Req> Send for BalanceMake<S, Req> where
S: Send,
S: Send,
impl<S, Req> Sync for BalanceMake<S, Req> where
S: Sync,
S: Sync,
impl<S, Req> Unpin for BalanceMake<S, Req> where
S: Unpin,
S: Unpin,
impl<S, Req> UnwindSafe for BalanceMake<S, Req> where
S: UnwindSafe,
S: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> From<T> for T
[src][+]
impl<T> Instrument for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<M, S, Target, Request> MakeService<Target, Request> for M where
S: Service<Request>,
M: Service<Target, Response = S>,
[src][+]
S: Service<Request>,
M: Service<Target, Response = S>,
impl<T> Pointable for T
[src][+]
impl<T> ToOwned for T where
T: Clone,
[src][+]
T: Clone,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src][+]
V: MultiLane<T>,