pub struct HashKvResponse(/* private fields */);Expand description
Response for hash_kv operation.
Implementations§
Source§impl HashKvResponse
impl HashKvResponse
Sourcepub fn header(&self) -> Option<&ResponseHeader>
pub fn header(&self) -> Option<&ResponseHeader>
Get response header.
Sourcepub fn take_header(&mut self) -> Option<ResponseHeader>
pub fn take_header(&mut self) -> Option<ResponseHeader>
Takes the header out of the response, leaving a None in its place.
Sourcepub fn hash(&self) -> u32
pub fn hash(&self) -> u32
Gets the hash value computed from the responding member’s MVCC keys up to a given revision.
Sourcepub fn compact_version(&self) -> i64
pub fn compact_version(&self) -> i64
Gets compacted revision of key-value store when hash begins.
Sourcepub fn hash_revision(&self) -> i64
pub fn hash_revision(&self) -> i64
Gets the revision up to which the hash is calculated.
Supported since etcd 3.6.
Trait Implementations§
Source§impl Clone for HashKvResponse
impl Clone for HashKvResponse
Auto Trait Implementations§
impl Freeze for HashKvResponse
impl RefUnwindSafe for HashKvResponse
impl Send for HashKvResponse
impl Sync for HashKvResponse
impl Unpin for HashKvResponse
impl UnsafeUnpin for HashKvResponse
impl UnwindSafe for HashKvResponse
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request