Struct etcd_client::StatusResponse [−][src]
#[repr(transparent)]pub struct StatusResponse(_);
Response for status
operation.
Implementations
impl StatusResponse
[src]
impl StatusResponse
[src]pub fn header(&self) -> Option<&ResponseHeader>
[src]
Get response header.
pub fn take_header(&mut self) -> Option<ResponseHeader>
[src]
Takes the header out of the response, leaving a None
in its place.
pub fn version(&self) -> &str
[src]
Get version of the member.
pub fn db_size(&self) -> i64
[src]
Get size of db, in bytes.
pub fn leader(&self) -> u64
[src]
Get leader of cluster.
pub fn raft_index(&self) -> u64
[src]
Get raft index of cluster.
pub fn raft_term(&self) -> u64
[src]
Get raft term of cluster.
pub fn raft_applied_index(&self) -> u64
[src]
Get raft applied of respond member.
pub fn errors(&self) -> &[String]
[src]
Get errors of cluster members.
pub fn raft_used_db_size(&self) -> i64
[src]
Get raft used db size, in bytes.
pub fn is_learner(&self) -> bool
[src]
Indicate if the member is raft learner.
Trait Implementations
impl Clone for StatusResponse
[src]
impl Clone for StatusResponse
[src]fn clone(&self) -> StatusResponse
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
Auto Trait Implementations
impl RefUnwindSafe for StatusResponse
impl RefUnwindSafe for StatusResponse
impl Send for StatusResponse
impl Send for StatusResponse
impl Sync for StatusResponse
impl Sync for StatusResponse
impl Unpin for StatusResponse
impl Unpin for StatusResponse
impl UnwindSafe for StatusResponse
impl UnwindSafe for StatusResponse
Blanket Implementations
impl<T> Instrument 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]
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> IntoRequest<T> for T
[src]
impl<T> IntoRequest<T> for T
[src]pub fn into_request(self) -> Request<T>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
pub fn vzip(self) -> V
impl<T> WithSubscriber for T
[src]
impl<T> WithSubscriber for T
[src]pub fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
[src]
S: Into<Dispatch>,