[][src]Struct rust_consul::Watcher

pub struct Watcher<T> { /* fields omitted */ }

Watch changes made in consul and parse those changes

Methods

impl<T> Watcher<T>[src]

pub fn reset(&mut self)[src]

Whenever the stream yield an error. The stream closes and can't be consumed anymore. In such cases, you are required to reset the stream. It will then, sleep (according to the error strategy) and reconnect to consul.

Trait Implementations

impl<T: Debug> Debug for Watcher<T>[src]

impl<T> Stream for Watcher<T> where
    T: ConsulType
[src]

type Item = Result<T::Reply, ParseError>

The type of item this stream will yield on success.

type Error = Error

The type of error this stream may generate.

Auto Trait Implementations

impl<T> !RefUnwindSafe for Watcher<T>

impl<T> Send for Watcher<T> where
    T: Send

impl<T> !Sync for Watcher<T>

impl<T> Unpin for Watcher<T> where
    T: Unpin

impl<T> !UnwindSafe for Watcher<T>

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> StreamExt for T where
    T: Stream + ?Sized
[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<V, T> VZip<V> for T where
    V: MultiLane<T>,