Struct tower::balance::pool::PoolDiscoverer[][src]

pub struct PoolDiscoverer<MS, Target, Request> where
    MS: MakeService<Target, Request>, 
{ /* fields omitted */ }
This is supported on crate feature balance only.

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<MS, Target, Request> Debug for PoolDiscoverer<MS, Target, Request> where
    MS: MakeService<Target, Request> + Debug,
    Target: Debug
[src]

impl<MS, Target, Request> Stream for PoolDiscoverer<MS, Target, Request> where
    MS: MakeService<Target, Request>,
    MS::MakeError: Into<BoxError>,
    MS::Error: Into<BoxError>,
    Target: Clone
[src]

type Item = Result<Change<usize, DropNotifyService<MS::Service>>, MS::MakeError>

Values yielded by the stream.

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

Auto Trait Implementations

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

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> !UnwindSafe for PoolDiscoverer<MS, Target, Request>

Blanket Implementations

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

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

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

impl<K, S, E, D> Discover for D where
    D: TryStream<Ok = Change<K, S>, Error = E> + ?Sized,
    K: Eq
[src]

type Key = K

This is supported on crate feature discover only.

A unique identifier for each active service. Read more

type Service = S

This is supported on crate feature discover only.

The type of Service yielded by this Discover. Read more

type Error = E

This is supported on crate feature discover only.

Error produced during discovery

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]

impl<T> StreamExt for T where
    T: Stream + ?Sized
[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<S, T, E> TryStream for S where
    S: Stream<Item = Result<T, E>> + ?Sized
[src]

type Ok = T

The type of successful values yielded by this future

type Error = E

The type of failures yielded by this future

impl<S> TryStreamExt for S where
    S: TryStream + ?Sized
[src]

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,