Enum async_consul::common::Blocking[][src]

pub enum Blocking {
    Index(u64),
    Hash(String),
}

The blocking behavior of a given operation.

Not all endpoints support blocking. Users can refer to the Consul API documentation on blocking to learn more.

Variants

Index(u64)

Block based on index.

This mode is related to the X-Consul-Index header returned by Consul.

Hash(String)

Block based on hash.

This mode is related to the X-Consul-ContentHash header returned by Consul.

Trait Implementations

impl Clone for Blocking[src]

impl Debug for Blocking[src]

impl PartialEq<Blocking> for Blocking[src]

impl StructuralPartialEq for Blocking[src]

Auto Trait Implementations

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> Instrument for T[src]

impl<T> Instrument for T[src]

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.