Struct tower_discover::ServiceList[][src]

pub struct ServiceList<T> where
    T: IntoIterator
{ /* fields omitted */ }

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> Discover for ServiceList<T> where
    T: IntoIterator<Item = U>, 
[src]

type Key = usize

NewService key

type Service = U

The type of Service yielded by this Discover.

type Error = Never

Error produced during discovery

impl<T> PinnedDrop for ServiceList<T> where
    T: IntoIterator
[src]

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

impl<T> UnsafeUnpin for ServiceList<T> where
    T: IntoIterator
[src]

Auto Trait Implementations

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

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

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

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

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<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.