Struct svc_agent::SharedGroup [−][src]
pub struct SharedGroup { /* fields omitted */ }Expand description
A group of agents which shares a subscription. Commonly used for balancing requests over a group of instances of some service.
Implementations
Builds a SharedGroup.
Arguments
label– shared group label to distinct it from the others if there are any.account_id– service account id. All the group’s participant agents must have the same.
Example
let_account_id = AccountId::new("service_name", "svc.example.org"); let shared_group = SharedGroup::new("loadbalancer", account_id);
Trait Implementations
Deserialize this value from the given Serde deserializer. Read more
Formats SharedGroup as LABEL.ACCOUNT_ID.
Example
let_account_id = AccountId::new("service_name", "svc.example.org"); let shared_group = SharedGroup::new("loadbalancer", account_id); format!("{}", shared_group); // => "loadbalancer.service_name.svc.example.org"
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Auto Trait Implementations
impl RefUnwindSafe for SharedGroupimpl Send for SharedGroupimpl Sync for SharedGroupimpl Unpin for SharedGroupimpl UnwindSafe for SharedGroupBlanket Implementations
Mutably borrows from an owned value. Read more