Struct ServiceList
pub struct ServiceList<T>
where
T: IntoIterator, { /* private fields */ }
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>,
fn new<Request>(services: T) -> ServiceList<T> where U: Service<Request>,
Trait Implementations
impl<'__pin, T> Unpin for ServiceList<T>
where
PinnedFieldsOf<__Origin<'__pin, T>>: Unpin,
T: IntoIterator,
impl<T> Debug for ServiceList<T>
where
T: IntoIterator + Debug,
T::IntoIter: Debug,
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl<T, U> Stream for ServiceList<T>
where
T: IntoIterator<Item = U>,
type Item = Result<Change<usize, U>, never>;fn poll_next(self: Pin<&mut Self>, &mut Context<'_>) -> Poll<Option<Self::Item>>