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

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.

Methods

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

type Key = usize

NewService key

type Service = U

type Error = Never

Error produced during discovery

Auto Trait Implementations

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

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

Blanket Implementations

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

impl<T> From for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

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

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

The type returned in the event of a conversion error.