Struct consul_rs::agent::AgentMember[][src]

pub struct AgentMember {
    pub Name: Option<String>,
    pub Addr: Option<String>,
    pub Port: Option<u16>,
    pub Tags: Option<HashMap<String, String>>,
    pub Status: Option<isize>,
    pub ProtocolMin: Option<u8>,
    pub ProtocolMax: Option<u8>,
    pub ProtocolCur: Option<u8>,
    pub DelegateMin: Option<u8>,
    pub DelegateMax: Option<u8>,
    pub DelegateCur: Option<u8>,
}
Expand description

AgentMember represents a cluster member known to the agent

Fields

Name: Option<String>Addr: Option<String>Port: Option<u16>Tags: Option<HashMap<String, String>>Status: Option<isize>

Status of the Member which corresponds to github.com/hashicorp/serf/serf.MemberStatus Value is one of: AgentMemberNone = 0 AgentMemberAlive = 1 AgentMemberLeaving = 2 AgentMemberLeft = 3 AgentMemberFailed = 4

ProtocolMin: Option<u8>ProtocolMax: Option<u8>ProtocolCur: Option<u8>DelegateMin: Option<u8>DelegateMax: Option<u8>DelegateCur: Option<u8>

Implementations

ACLMode returns the ACL mode this agent is operating in.

the key may not have existed but then an empty string will be returned and we will handle that in the default case of the switch

IsConsulServer returns true when this member is a Consul server.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

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