Struct etcd_client::ResponseHeader
source · [−]#[repr(transparent)]pub struct ResponseHeader(pub PbResponseHeader);
Expand description
General etcd
response header.
Tuple Fields
0: PbResponseHeader
Implementations
sourceimpl ResponseHeader
impl ResponseHeader
sourcepub const fn cluster_id(&self) -> u64
pub const fn cluster_id(&self) -> u64
The ID of the cluster which sent the response.
Trait Implementations
sourceimpl Clone for ResponseHeader
impl Clone for ResponseHeader
sourcefn clone(&self) -> ResponseHeader
fn clone(&self) -> ResponseHeader
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for ResponseHeader
impl Debug for ResponseHeader
sourceimpl From<&ResponseHeader> for &ResponseHeader
impl From<&ResponseHeader> for &ResponseHeader
sourcefn from(src: &PbResponseHeader) -> Self
fn from(src: &PbResponseHeader) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl RefUnwindSafe for ResponseHeader
impl Send for ResponseHeader
impl Sync for ResponseHeader
impl Unpin for ResponseHeader
impl UnwindSafe for ResponseHeader
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
sourcefn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request