Struct tower_discover::ServiceStream[][src]

pub struct ServiceStream<S> { /* fields omitted */ }

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]

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]

type Key = K

NewService key

type Service = Svc

The type of Service yielded by this Discover.

type Error = S::Error

Error produced during discovery

impl<S> PinnedDrop for ServiceStream<S>[src]

impl<'pin, S> Unpin for ServiceStream<S> where
    __ServiceStream<'pin, S>: Unpin
[src]

impl<S> UnsafeUnpin for ServiceStream<S>[src]

Auto Trait Implementations

impl<S> RefUnwindSafe for ServiceStream<S> where
    S: RefUnwindSafe

impl<S> Send for ServiceStream<S> where
    S: Send

impl<S> Sync for ServiceStream<S> where
    S: Sync

impl<S> UnwindSafe for ServiceStream<S> where
    S: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.