pub struct Client { /* private fields */ }Implementations§
Trait Implementations§
Source§impl Agent for Client
impl Agent for Client
Source§fn checks<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<HashMap<String, AgentCheck>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn checks<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<HashMap<String, AgentCheck>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
https://www.consul.io/api/agent/check.html#list-checks
Source§fn members<'life0, 'async_trait>(
&'life0 self,
wan: bool,
) -> Pin<Box<dyn Future<Output = Result<AgentMember>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn members<'life0, 'async_trait>(
&'life0 self,
wan: bool,
) -> Pin<Box<dyn Future<Output = Result<AgentMember>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
https://www.consul.io/api/agent.html#list-members
Source§fn reload<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn reload<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
https://www.consul.io/api/agent.html#reload-agent
Source§fn maintenance_mode<'life0, 'life1, 'async_trait>(
&'life0 self,
enable: bool,
reason: Option<&'life1 str>,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn maintenance_mode<'life0, 'life1, 'async_trait>(
&'life0 self,
enable: bool,
reason: Option<&'life1 str>,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
https://www.consul.io/api/agent.html#reload-agent
Source§fn join<'life0, 'life1, 'async_trait>(
&'life0 self,
address: &'life1 str,
wan: bool,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn join<'life0, 'life1, 'async_trait>(
&'life0 self,
address: &'life1 str,
wan: bool,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
https://www.consul.io/api/agent.html#join-agent
Source§impl Catalog for Client
impl Catalog for Client
Source§fn register<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
reg: &'life1 CatalogRegistration,
q: Option<&'life2 WriteOptions>,
) -> Pin<Box<dyn Future<Output = Result<((), WriteMeta)>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn register<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
reg: &'life1 CatalogRegistration,
q: Option<&'life2 WriteOptions>,
) -> Pin<Box<dyn Future<Output = Result<((), WriteMeta)>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
https://www.consul.io/api/catalog.html#register-entity
Source§fn deregister<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
dereg: &'life1 CatalogDeregistration,
q: Option<&'life2 WriteOptions>,
) -> Pin<Box<dyn Future<Output = Result<((), WriteMeta)>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn deregister<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
dereg: &'life1 CatalogDeregistration,
q: Option<&'life2 WriteOptions>,
) -> Pin<Box<dyn Future<Output = Result<((), WriteMeta)>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
https://www.consul.io/api/catalog.html#deregister-entity
Source§fn datacenters<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(Vec<String>, QueryMeta)>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn datacenters<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(Vec<String>, QueryMeta)>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
https://www.consul.io/api/catalog.html#list-datacenters
Source§fn nodes<'life0, 'life1, 'async_trait>(
&'life0 self,
q: Option<&'life1 QueryOptions>,
) -> Pin<Box<dyn Future<Output = Result<(Vec<Node>, QueryMeta)>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn nodes<'life0, 'life1, 'async_trait>(
&'life0 self,
q: Option<&'life1 QueryOptions>,
) -> Pin<Box<dyn Future<Output = Result<(Vec<Node>, QueryMeta)>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
https://www.consul.io/api/catalog.html#list-nodes
fn services<'life0, 'life1, 'async_trait>(
&'life0 self,
q: Option<&'life1 QueryOptions>,
) -> Pin<Box<dyn Future<Output = Result<(HashMap<String, Vec<String>>, QueryMeta)>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§impl ConnectCA for Client
impl ConnectCA for Client
Source§fn ca_roots<'life0, 'life1, 'async_trait>(
&'life0 self,
q: Option<&'life1 QueryOptions>,
) -> Pin<Box<dyn Future<Output = Result<(CARootList, QueryMeta)>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn ca_roots<'life0, 'life1, 'async_trait>(
&'life0 self,
q: Option<&'life1 QueryOptions>,
) -> Pin<Box<dyn Future<Output = Result<(CARootList, QueryMeta)>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
https://www.consul.io/api/connect/ca.html#list-ca-root-certificates
Source§fn ca_get_config<'life0, 'life1, 'async_trait>(
&'life0 self,
q: Option<&'life1 QueryOptions>,
) -> Pin<Box<dyn Future<Output = Result<(CAConfig, QueryMeta)>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn ca_get_config<'life0, 'life1, 'async_trait>(
&'life0 self,
q: Option<&'life1 QueryOptions>,
) -> Pin<Box<dyn Future<Output = Result<(CAConfig, QueryMeta)>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
https://www.consul.io/api/connect/ca.html#get-ca-configuration
Source§fn ca_set_config<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
conf: &'life1 CAConfig,
q: Option<&'life2 WriteOptions>,
) -> Pin<Box<dyn Future<Output = Result<((), WriteMeta)>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn ca_set_config<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
conf: &'life1 CAConfig,
q: Option<&'life2 WriteOptions>,
) -> Pin<Box<dyn Future<Output = Result<((), WriteMeta)>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
https://www.consul.io/api/connect/ca.html#update-ca-configuration
Source§impl Health for Client
impl Health for Client
fn service<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
service: &'life1 str,
tag: Option<&'life2 str>,
passing_only: bool,
options: Option<&'life3 QueryOptions>,
) -> Pin<Box<dyn Future<Output = Result<(Vec<ServiceEntry>, QueryMeta)>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Source§impl KV for Client
impl KV for Client
fn acquire<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
pair: &'life1 KVPair,
o: Option<&'life2 WriteOptions>,
) -> Pin<Box<dyn Future<Output = Result<(bool, WriteMeta)>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn delete<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
key: &'life1 str,
options: Option<&'life2 WriteOptions>,
) -> Pin<Box<dyn Future<Output = Result<(bool, WriteMeta)>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn get<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
key: &'life1 str,
options: Option<&'life2 QueryOptions>,
) -> Pin<Box<dyn Future<Output = Result<(Option<KVPair>, QueryMeta)>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn list<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
prefix: &'life1 str,
o: Option<&'life2 QueryOptions>,
) -> Pin<Box<dyn Future<Output = Result<(Vec<KVPair>, QueryMeta)>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn put<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
pair: &'life1 KVPair,
o: Option<&'life2 WriteOptions>,
) -> Pin<Box<dyn Future<Output = Result<(bool, WriteMeta)>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn release<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
pair: &'life1 KVPair,
o: Option<&'life2 WriteOptions>,
) -> Pin<Box<dyn Future<Output = Result<(bool, WriteMeta)>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Source§impl Session for Client
impl Session for Client
fn create<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
session: &'life1 SessionEntry,
options: Option<&'life2 WriteOptions>,
) -> Pin<Box<dyn Future<Output = Result<(SessionEntry, WriteMeta)>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn destroy<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
id: &'life1 str,
options: Option<&'life2 WriteOptions>,
) -> Pin<Box<dyn Future<Output = Result<(bool, WriteMeta)>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn info<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
id: &'life1 str,
options: Option<&'life2 QueryOptions>,
) -> Pin<Box<dyn Future<Output = Result<(Vec<SessionEntry>, QueryMeta)>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn list<'life0, 'life1, 'async_trait>(
&'life0 self,
options: Option<&'life1 QueryOptions>,
) -> Pin<Box<dyn Future<Output = Result<(Vec<SessionEntry>, QueryMeta)>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn node<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
node: &'life1 str,
options: Option<&'life2 QueryOptions>,
) -> Pin<Box<dyn Future<Output = Result<(Vec<SessionEntry>, QueryMeta)>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn renew<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
id: &'life1 str,
options: Option<&'life2 WriteOptions>,
) -> Pin<Box<dyn Future<Output = Result<(Vec<SessionEntry>, WriteMeta)>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Auto Trait Implementations§
impl Freeze for Client
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl UnsafeUnpin 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