[][src]Struct eschudt_consul::Agent

pub struct Agent { /* fields omitted */ }

Agent can be used to query the Agent endpoints

Methods

impl Agent[src]

pub fn new(address: &str) -> Agent[src]

pub fn services(&self) -> ConsulResult<HashMap<String, Service>>[src]

pub fn members(&self) -> ConsulResult<Vec<AgentMember>>[src]

pub fn register(&self, service: RegisterService) -> ConsulResult<()>[src]

pub fn register_ttl_check(
    &self,
    health_check: TtlHealthCheck
) -> ConsulResult<()>
[src]

pub fn check_pass(&self, service_id: String) -> ConsulResult<()>[src]

pub fn get_self_name(&self) -> ConsulResult<Option<String>>[src]

pub fn get_self_address(&self) -> ConsulResult<Option<String>>[src]

Auto Trait Implementations

impl Send for Agent

impl Sync for Agent

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Typeable for T where
    T: Any

fn get_type(&self) -> TypeId

Get the TypeId of this object.