pub struct ResponseMeta<T> {
pub response: T,
pub index: u64,
}Expand description
Encapsulates a consul query response and the returned metadata, if any.
Fields§
§response: TQuery response.
index: u64The index returned from the consul query via the X-Consul-Index header.
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for ResponseMeta<T>where
T: Freeze,
impl<T> RefUnwindSafe for ResponseMeta<T>where
T: RefUnwindSafe,
impl<T> Send for ResponseMeta<T>where
T: Send,
impl<T> Sync for ResponseMeta<T>where
T: Sync,
impl<T> Unpin for ResponseMeta<T>where
T: Unpin,
impl<T> UnsafeUnpin for ResponseMeta<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for ResponseMeta<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more