pub struct Client { /* private fields */ }Expand description
Client is an abstraction for grouping etcd operations and managing underlying network communications.
Implementations§
Trait Implementations§
Source§impl AuthOp for Client
impl AuthOp for Client
async fn authenticate<R>(&self, req: R) -> Result<AuthenticateResponse>where
R: Into<AuthenticateRequest>,
async fn auth_status(&self) -> Result<AuthStatusResponse>
async fn auth_enable(&self) -> Result<AuthEnableResponse>
async fn auth_disable(&self) -> Result<AuthDisableResponse>
async fn role_add<R>(&self, req: R) -> Result<AuthRoleAddResponse>where
R: Into<AuthRoleAddRequest>,
async fn role_delete<R>(&self, req: R) -> Result<AuthRoleDeleteResponse>where
R: Into<AuthRoleDeleteRequest>,
async fn role_list(&self) -> Result<AuthRoleListResponse>
Source§impl ClusterOp for Client
impl ClusterOp for Client
async fn member_add<R>(&self, req: R) -> Result<MemberAddResponse>where
R: Into<MemberAddRequest>,
async fn member_remove<R>(&self, req: R) -> Result<MemberRemoveResponse>where
R: Into<MemberRemoveRequest>,
async fn member_update<R>(&self, req: R) -> Result<MemberUpdateResponse>where
R: Into<MemberUpdateRequest>,
async fn member_list(&self) -> Result<MemberListResponse>
Source§impl KeyValueOp for Client
impl KeyValueOp for Client
async fn put<R>(&self, req: R) -> Result<PutResponse>where
R: Into<PutRequest>,
async fn get<R>(&self, req: R) -> Result<RangeResponse>where
R: Into<RangeRequest>,
async fn get_all(&self) -> Result<RangeResponse>
async fn get_by_prefix<K>(&self, p: K) -> Result<RangeResponse>
async fn get_range<F, E>(&self, from: F, end: E) -> Result<RangeResponse>
async fn delete<R>(&self, req: R) -> Result<DeleteResponse>where
R: Into<DeleteRequest>,
async fn delete_all(&self) -> Result<DeleteResponse>
async fn delete_by_prefix<K>(&self, p: K) -> Result<DeleteResponse>
async fn delete_range<F, E>(&self, from: F, end: E) -> Result<DeleteResponse>
async fn txn<R>(&self, req: R) -> Result<TxnResponse>where
R: Into<TxnRequest>,
async fn compact<R>(&self, req: R) -> Result<CompactResponse>where
R: Into<CompactRequest>,
Source§impl LeaseOp for Client
impl LeaseOp for Client
async fn grant_lease<R>(&self, req: R) -> Result<LeaseGrantResponse>where
R: Into<LeaseGrantRequest>,
async fn revoke<R>(&self, req: R) -> Result<LeaseRevokeResponse>where
R: Into<LeaseRevokeRequest>,
async fn keep_alive_for(&self, lease_id: LeaseId) -> Result<LeaseKeepAlive>
async fn time_to_live<R>(&self, req: R) -> Result<LeaseTimeToLiveResponse>where
R: Into<LeaseTimeToLiveRequest>,
Source§impl WatchOp for Client
impl WatchOp for Client
async fn watch<R>(&self, req: R) -> Result<(WatchStream, WatchCanceler)>where
R: Into<WatchCreateRequest>,
Auto Trait Implementations§
impl !Freeze for Client
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl !UnwindSafe for Client
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