pub struct QueryMeta {
pub last_index: u64,
pub last_contact: Duration,
pub known_leader: bool,
pub request_time: Duration,
pub address_translation_enabled: bool,
pub cache_hit: bool,
pub cache_age: Option<Duration>,
}Expand description
Metadata returned from query operations
Fields§
§last_index: u64LastIndex can be used for blocking queries
last_contact: DurationLastContact is the time of last contact from leader
known_leader: boolKnownLeader indicates if there is a known leader
request_time: DurationRequestTime is how long the request took
address_translation_enabled: boolAddressTranslationEnabled indicates if address translation is enabled
cache_hit: boolCacheHit indicates if the response was a cache hit
cache_age: Option<Duration>CacheAge is how old the cached response is
Trait Implementations§
Auto Trait Implementations§
impl Freeze for QueryMeta
impl RefUnwindSafe for QueryMeta
impl Send for QueryMeta
impl Sync for QueryMeta
impl Unpin for QueryMeta
impl UnwindSafe for QueryMeta
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)