Struct async_consul::common::QueryMetadata [−][src]
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: boolWhether or not the cluster has a known leader.
last_contact: DurationAmount of time since the server which serviced this request has contacted the leader.
addr_translate_enabled: boolWhether or not address translation is enabled for HTTP responses on the agent being queried.
cache_hit: boolWhether 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]
fn default() -> QueryMetadata[src]
Auto Trait Implementations
impl RefUnwindSafe for QueryMetadata[src]
impl Send for QueryMetadata[src]
impl Sync for QueryMetadata[src]
impl Unpin for QueryMetadata[src]
impl UnwindSafe for QueryMetadata[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T> Instrument for T[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>[src]
pub fn in_current_span(self) -> Instrumented<Self>[src]
impl<T> Instrument for T[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>[src]
pub fn in_current_span(self) -> Instrumented<Self>[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,