pub enum EndpointMode {
Vip,
Dnsrr,
}Expand description
Specifies a service discovery method for external clients connecting to a service. See more: https://docs.docker.com/reference/compose-file/deploy/#endpoint_mode
Variants§
Vip
Assigns the service a virtual IP (VIP) that acts as the front end for clients to reach the service on a network. Platform routes requests between the client and nodes running the service, without client knowledge of how many nodes are participating in the service or their IP addresses or ports.
Dnsrr
Platform sets up DNS entries for the service such that a DNS query for the service name returns a list of IP addresses (DNS round-robin), and the client connects directly to one of these.
Trait Implementations§
Source§impl Clone for EndpointMode
impl Clone for EndpointMode
Source§fn clone(&self) -> EndpointMode
fn clone(&self) -> EndpointMode
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 EndpointMode
impl Debug for EndpointMode
Source§impl<'de> Deserialize<'de> for EndpointMode
impl<'de> Deserialize<'de> for EndpointMode
Source§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
Source§impl PartialEq for EndpointMode
impl PartialEq for EndpointMode
Source§impl Serialize for EndpointMode
impl Serialize for EndpointMode
impl Eq for EndpointMode
impl StructuralPartialEq for EndpointMode
Auto Trait Implementations§
impl Freeze for EndpointMode
impl RefUnwindSafe for EndpointMode
impl Send for EndpointMode
impl Sync for EndpointMode
impl Unpin for EndpointMode
impl UnsafeUnpin for EndpointMode
impl UnwindSafe for EndpointMode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.