Struct etcd_client::ClusterClient [−][src]
#[repr(transparent)]pub struct ClusterClient { /* fields omitted */ }
Expand description
Client for Cluster operations.
Implementations
pub async fn member_add(
&mut self,
urls: impl Into<Vec<String>>,
options: Option<MemberAddOptions>
) -> Result<MemberAddResponse, Error>
pub async fn member_add(
&mut self,
urls: impl Into<Vec<String>>,
options: Option<MemberAddOptions>
) -> Result<MemberAddResponse, Error>
Adds a new member into the cluster.
Removes an existing member from the cluster.
pub async fn member_update(
&mut self,
id: u64,
url: impl Into<Vec<String>>
) -> Result<MemberUpdateResponse, Error>
pub async fn member_update(
&mut self,
id: u64,
url: impl Into<Vec<String>>
) -> Result<MemberUpdateResponse, Error>
Updates the member configuration.
Lists all the members in the cluster.
Promotes a member from raft learner (non-voting) to raft voting member.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for ClusterClient
impl Send for ClusterClient
impl Sync for ClusterClient
impl Unpin for ClusterClient
impl !UnwindSafe for ClusterClient
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Wrap the input message T
in a tonic::Request
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more