pub struct ServiceList<T>where
T: IntoIterator,{ /* private fields */ }
Expand description
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§
Source§impl<T, U> ServiceList<T>where
T: IntoIterator<Item = U>,
impl<T, U> ServiceList<T>where
T: IntoIterator<Item = U>,
pub fn new<Request>(services: T) -> ServiceList<T>where
U: Service<Request>,
Trait Implementations§
Source§impl<T> Debug for ServiceList<T>
impl<T> Debug for ServiceList<T>
Source§impl<T, U> Discover for ServiceList<T>where
T: IntoIterator<Item = U>,
impl<T, U> Discover for ServiceList<T>where
T: IntoIterator<Item = U>,
impl<'pin, T> Unpin for ServiceList<T>where
T: IntoIterator,
__ServiceList<'pin, T>: Unpin,
impl<T> UnsafeUnpin for ServiceList<T>where
T: IntoIterator,
Auto Trait Implementations§
impl<T> Freeze for ServiceList<T>
impl<T> RefUnwindSafe for ServiceList<T>
impl<T> Send for ServiceList<T>
impl<T> Sync for ServiceList<T>
impl<T> UnwindSafe for ServiceList<T>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more