Struct tower_discover::ServiceStream [−][src]
Dynamic service discovery based on a stream of service changes.
Implementations
impl<S> ServiceStream<S>
[src][−]
pub fn new<K, Svc, Request>(services: S) -> Self where
S: TryStream<Ok = Change<K, Svc>>,
K: Hash + Eq,
Svc: Service<Request>,
[src]
S: TryStream<Ok = Change<K, Svc>>,
K: Hash + Eq,
Svc: Service<Request>,
Trait Implementations
impl<S: Debug> Debug for ServiceStream<S>
[src][+]
impl<S, K, Svc> Discover for ServiceStream<S> where
K: Hash + Eq,
S: TryStream<Ok = Change<K, Svc>>,
[src][+]
K: Hash + Eq,
S: TryStream<Ok = Change<K, Svc>>,
impl<S> PinnedDrop for ServiceStream<S>
[src][+]
impl<'pin, S> Unpin for ServiceStream<S> where
__ServiceStream<'pin, S>: Unpin,
[src]
__ServiceStream<'pin, S>: Unpin,
impl<S> UnsafeUnpin for ServiceStream<S>
[src]
Auto Trait Implementations
impl<S> RefUnwindSafe for ServiceStream<S> where
S: RefUnwindSafe,
S: RefUnwindSafe,
impl<S> Send for ServiceStream<S> where
S: Send,
S: Send,
impl<S> Sync for ServiceStream<S> where
S: Sync,
S: Sync,
impl<S> UnwindSafe for ServiceStream<S> where
S: UnwindSafe,
S: 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,
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>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,