Struct async_consul::common::QueryMetadata[][src]

pub struct QueryMetadata {
    pub last_index: Option<u64>,
    pub last_content_hash: Option<String>,
    pub known_leader: bool,
    pub last_contact: Duration,
    pub addr_translate_enabled: bool,
    pub cache_hit: bool,
    pub cache_age: Option<Duration>,
}

Metadata about the request returned from a query operation.

Fields

last_index: Option<u64>

The Consul index for the data in this response.

Can be used to issue a blocking query.

last_content_hash: Option<String>

The Consul content hash for the data in this response.

Can be used to issue a blocking query, but is only available for endpoints that support hash-based blocking.

known_leader: bool

Whether or not the cluster has a known leader.

last_contact: Duration

Amount of time since the server which serviced this request has contacted the leader.

addr_translate_enabled: bool

Whether or not address translation is enabled for HTTP responses on the agent being queried.

cache_hit: bool

Whether or not this response was served from the agent's local cache.

cache_age: Option<Duration>

The age of the cache value, if served from cache.

Trait Implementations

impl Debug for QueryMetadata[src]

impl Default for QueryMetadata[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, 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.