pub struct StatusResponse(/* private fields */);Expand description
Response for status operation.
Implementations§
Source§impl StatusResponse
impl StatusResponse
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 raft_index(&self) -> u64
pub fn raft_index(&self) -> u64
Get raft index of cluster.
Sourcepub fn raft_applied_index(&self) -> u64
pub fn raft_applied_index(&self) -> u64
Get raft applied of respond member.
Sourcepub fn raft_used_db_size(&self) -> i64
pub fn raft_used_db_size(&self) -> i64
Get raft used db size, in bytes.
Sourcepub fn is_learner(&self) -> bool
pub fn is_learner(&self) -> bool
Indicate if the member is raft learner.
Sourcepub fn storage_version(&self) -> &str
pub fn storage_version(&self) -> &str
storageVersion is the version of the db file. It might be updated with delay in relationship to the target cluster version.
Supported since etcd 3.6.
Sourcepub fn db_size_quota(&self) -> i64
pub fn db_size_quota(&self) -> i64
dbSizeQuota is the configured etcd storage quota in bytes (the value passed to etcd instance by flag –quota-backend-bytes)
Supported since etcd 3.6.
Sourcepub fn downgrade_info(&self) -> Option<&DowngradeInfo>
pub fn downgrade_info(&self) -> Option<&DowngradeInfo>
downgradeInfo indicates if there is downgrade process.
Supported since etcd 3.6.
Trait Implementations§
Source§impl Clone for StatusResponse
impl Clone for StatusResponse
Auto Trait Implementations§
impl Freeze for StatusResponse
impl RefUnwindSafe for StatusResponse
impl Send for StatusResponse
impl Sync for StatusResponse
impl Unpin for StatusResponse
impl UnsafeUnpin for StatusResponse
impl UnwindSafe for StatusResponse
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