[][src]Struct tower_discover::ServiceStream

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

Dynamic service discovery based on a stream of service changes.

Methods

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, 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<'_pin, S> Unpin for ServiceStream<S> where
    __UnpinStructServiceStream<'_pin, S>: Unpin
[src]

impl<S: Debug> Debug for ServiceStream<S>[src]

Auto Trait Implementations

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

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

Blanket Implementations

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

impl<T> From<T> for 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.

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

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

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