[][src]Struct tower_balance::pool::PoolDiscoverer

pub struct PoolDiscoverer<MS, Target, Request> where
    MS: MakeService<Target, Request>, 
{ /* fields omitted */ }

A wrapper around MakeService that discovers a new service when load is high, and removes a service when load is low. See Pool.

Trait Implementations

impl<'_pin, MS, Target, Request> Unpin for PoolDiscoverer<MS, Target, Request> where
    MS: MakeService<Target, Request>,
    __UnpinStructPoolDiscoverer<'_pin, MS, Target, Request>: Unpin
[src]

impl<MS, Target, Request> Debug for PoolDiscoverer<MS, Target, Request> where
    MS: MakeService<Target, Request> + Debug,
    Target: Debug
[src]

impl<MS, Target, Request> Discover for PoolDiscoverer<MS, Target, Request> where
    MS: MakeService<Target, Request>,
    MS::MakeError: Into<Box<dyn Error + Send + Sync>>,
    MS::Error: Into<Box<dyn Error + Send + Sync>>,
    Target: Clone
[src]

type Key = usize

NewService key

type Service = DropNotifyService<MS::Service>

The type of Service yielded by this Discover.

type Error = MS::MakeError

Error produced during discovery

Auto Trait Implementations

impl<MS, Target, Request> Send for PoolDiscoverer<MS, Target, Request> where
    MS: Send,
    Target: Send,
    <MS as MakeService<Target, Request>>::Future: Send

impl<MS, Target, Request> Sync for PoolDiscoverer<MS, Target, Request> where
    MS: Sync,
    Target: Sync,
    <MS as MakeService<Target, Request>>::Future: Sync

impl<MS, Target, Request> !RefUnwindSafe for PoolDiscoverer<MS, Target, Request>

impl<MS, Target, Request> !UnwindSafe for PoolDiscoverer<MS, Target, Request>

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]