[][src]Struct tower::discover::ServiceList

pub struct ServiceList<T> where
    T: IntoIterator
{ /* fields omitted */ }
This is supported on crate feature discover only.

Static service discovery based on a predetermined list of services.

ServiceList is created with an initial list of services. The discovery process will yield this list once and do nothing after.

Implementations

impl<T, U> ServiceList<T> where
    T: IntoIterator<Item = U>, 
[src]

pub fn new<Request>(services: T) -> ServiceList<T> where
    U: Service<Request>, 
[src]

Trait Implementations

impl<T: Debug> Debug for ServiceList<T> where
    T: IntoIterator,
    T::IntoIter: Debug
[src]

impl<T, U> Stream for ServiceList<T> where
    T: IntoIterator<Item = U>, 
[src]

type Item = Result<Change<usize, U>, Never>

Values yielded by the stream.

impl<'pin, T> Unpin for ServiceList<T> where
    T: IntoIterator,
    __ServiceList<'pin, T>: Unpin
[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for ServiceList<T> where
    <T as IntoIterator>::IntoIter: RefUnwindSafe
[src]

impl<T> Send for ServiceList<T> where
    <T as IntoIterator>::IntoIter: Send
[src]

impl<T> Sync for ServiceList<T> where
    <T as IntoIterator>::IntoIter: Sync
[src]

impl<T> UnwindSafe for ServiceList<T> where
    <T as IntoIterator>::IntoIter: UnwindSafe
[src]

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.

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<St> StreamExt for St where
    St: 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>,