Trait consul::agent::Agent [−][src]
pub trait Agent { fn checks(&self) -> Result<HashMap<String, AgentCheck>>; fn members(&self, wan: bool) -> Result<AgentMember>; fn reload(&self) -> Result<()>; fn maintenance_mode(&self, enable: bool, reason: Option<&str>) -> Result<()>; fn join(&self, address: &str, wan: bool) -> Result<()>; fn leave(&self) -> Result<()>; fn force_leave(&self) -> Result<()>; }
Required methods
fn checks(&self) -> Result<HashMap<String, AgentCheck>>
[src]
fn members(&self, wan: bool) -> Result<AgentMember>
[src]
fn reload(&self) -> Result<()>
[src]
fn maintenance_mode(&self, enable: bool, reason: Option<&str>) -> Result<()>
[src]
fn join(&self, address: &str, wan: bool) -> Result<()>
[src]
fn leave(&self) -> Result<()>
[src]
fn force_leave(&self) -> Result<()>
[src]
Implementors
impl Agent for Client
[src]
impl Agent for Client
[src]fn checks(&self) -> Result<HashMap<String, AgentCheck>>
[src]
fn checks(&self) -> Result<HashMap<String, AgentCheck>>
[src]https://www.consul.io/api/agent/check.html#list-checks
fn members(&self, wan: bool) -> Result<AgentMember>
[src]
fn members(&self, wan: bool) -> Result<AgentMember>
[src]https://www.consul.io/api/agent.html#list-members
fn maintenance_mode(&self, enable: bool, reason: Option<&str>) -> Result<()>
[src]
fn maintenance_mode(&self, enable: bool, reason: Option<&str>) -> Result<()>
[src]https://www.consul.io/api/agent.html#reload-agent
fn join(&self, address: &str, wan: bool) -> Result<()>
[src]
fn join(&self, address: &str, wan: bool) -> Result<()>
[src]https://www.consul.io/api/agent.html#join-agent
fn force_leave(&self) -> Result<()>
[src]
fn force_leave(&self) -> Result<()>
[src]https://www.consul.io/api/agent.html#force-leave-and-shutdown