[−][src]Struct tower_discover::ServiceList
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]
T: IntoIterator<Item = U>,
pub fn new<Request>(services: T) -> ServiceList<T> where
U: Service<Request>,
[src]
U: Service<Request>,
Trait Implementations
impl<T, U> Discover for ServiceList<T> where
T: IntoIterator<Item = U>,
[src]
T: IntoIterator<Item = U>,
Auto Trait Implementations
impl<T> Send for ServiceList<T> where
<T as IntoIterator>::IntoIter: Send,
<T as IntoIterator>::IntoIter: Send,
impl<T> Sync for ServiceList<T> where
<T as IntoIterator>::IntoIter: Sync,
<T as IntoIterator>::IntoIter: Sync,
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,