pub struct EndpointSubset {
pub addresses: Vec<EndpointAddress>,
pub not_ready_addresses: Vec<EndpointAddress>,
pub ports: Vec<EndpointPort>,
}
Expand description
EndpointSubset is a group of addresses with a common set of ports. The expanded set of endpoints is the Cartesian product of Addresses x Ports. For example, given:
{
Addresses: \[{"ip": "10.10.1.1"}, {"ip": "10.10.2.2"}\],
Ports: \[{"name": "a", "port": 8675}, {"name": "b", "port": 309}\]
}
The resulting set of endpoints can be viewed as:
a: \[ 10.10.1.1:8675, 10.10.2.2:8675 \],
b: \[ 10.10.1.1:309, 10.10.2.2:309 \]
Deprecated: This API is deprecated in v1.33+.
Fields§
§addresses: Vec<EndpointAddress>
IP addresses which offer the related ports that are marked as ready. These endpoints should be considered safe for load balancers and clients to utilize. +optional +listType=atomic
not_ready_addresses: Vec<EndpointAddress>
IP addresses which offer the related ports but are not currently marked as ready because they have not yet finished starting, have recently failed a readiness check, or have recently failed a liveness check. +optional +listType=atomic
ports: Vec<EndpointPort>
Port numbers available on the related IP addresses. +optional +listType=atomic
Trait Implementations§
Source§impl Clone for EndpointSubset
impl Clone for EndpointSubset
Source§fn clone(&self) -> EndpointSubset
fn clone(&self) -> EndpointSubset
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for EndpointSubset
impl Debug for EndpointSubset
Source§impl Default for EndpointSubset
impl Default for EndpointSubset
Source§impl Message for EndpointSubset
impl Message for EndpointSubset
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes an instance of the message from a buffer, and merges it into
self
. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self
.Source§impl PartialEq for EndpointSubset
impl PartialEq for EndpointSubset
impl StructuralPartialEq for EndpointSubset
Auto Trait Implementations§
impl Freeze for EndpointSubset
impl RefUnwindSafe for EndpointSubset
impl Send for EndpointSubset
impl Sync for EndpointSubset
impl Unpin for EndpointSubset
impl UnwindSafe for EndpointSubset
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more