Struct tower_discover::ServiceList [−][src]
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]
T: IntoIterator<Item = U>,
pub fn new<Request>(services: T) -> ServiceList<T> where
U: Service<Request>,
[src]
U: Service<Request>,
Trait Implementations
impl<T: Debug> Debug for ServiceList<T> where
T: IntoIterator,
T::IntoIter: Debug,
[src]
T: IntoIterator,
T::IntoIter: Debug,
impl<T, U> Discover for ServiceList<T> where
T: IntoIterator<Item = U>,
[src]
T: IntoIterator<Item = U>,
type Key = usize
NewService key
type Service = U
The type of Service
yielded by this Discover
.
type Error = Never
Error produced during discovery
fn poll_discover(
self: Pin<&mut Self>,
_: &mut Context<'_>
) -> Poll<Result<Change<Self::Key, Self::Service>, Self::Error>>
[src]
self: Pin<&mut Self>,
_: &mut Context<'_>
) -> Poll<Result<Change<Self::Key, Self::Service>, Self::Error>>
impl<T> PinnedDrop for ServiceList<T> where
T: IntoIterator,
[src]
T: IntoIterator,
impl<'pin, T> Unpin for ServiceList<T> where
T: IntoIterator,
__ServiceList<'pin, T>: Unpin,
[src]
T: IntoIterator,
__ServiceList<'pin, T>: Unpin,
impl<T> UnsafeUnpin for ServiceList<T> where
T: IntoIterator,
[src]
T: IntoIterator,
Auto Trait Implementations
impl<T> RefUnwindSafe for ServiceList<T> where
<T as IntoIterator>::IntoIter: RefUnwindSafe,
<T as IntoIterator>::IntoIter: RefUnwindSafe,
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,
impl<T> UnwindSafe for ServiceList<T> where
<T as IntoIterator>::IntoIter: UnwindSafe,
<T as IntoIterator>::IntoIter: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,