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>>,
type Key = K
NewService key
type Service = Svc
The type of Service yielded by this Discover.
type Error = S::Error
Error produced during discovery
fn poll_discover(
self: Pin<&mut Self>,
cx: &mut Context<'_>
) -> Poll<Result<Change<Self::Key, Self::Service>, Self::Error>>[src]
self: Pin<&mut Self>,
cx: &mut Context<'_>
) -> Poll<Result<Change<Self::Key, Self::Service>, Self::Error>>
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,
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>,