Struct etcd_client::Member
source · pub struct Member(/* private fields */);
Expand description
Cluster member.
Implementations§
source§impl Member
impl Member
sourcepub fn name(&self) -> &str
pub fn name(&self) -> &str
The human-readable name of the member. If the member is not started, the name will be an empty string.
sourcepub fn peer_urls(&self) -> &[String]
pub fn peer_urls(&self) -> &[String]
The list of URLs the member exposes to the cluster for communication.
sourcepub fn client_urls(&self) -> &[String]
pub fn client_urls(&self) -> &[String]
The list of URLs the member exposes to clients for communication. If the member is not started, client URLs will be empty.
sourcepub const fn is_learner(&self) -> bool
pub const fn is_learner(&self) -> bool
Indicates if the member is raft learner.
Trait Implementations§
source§impl PartialEq for Member
impl PartialEq for Member
impl StructuralPartialEq for Member
Auto Trait Implementations§
impl Freeze for Member
impl RefUnwindSafe for Member
impl Send for Member
impl Sync for Member
impl Unpin for Member
impl UnwindSafe for Member
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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