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 the “default value” for a type. Read more
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for AgentMember
impl Send for AgentMember
impl Sync for AgentMember
impl Unpin for AgentMember
impl UnwindSafe for AgentMember
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V
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