#[non_exhaustive]pub enum DeployEndpointMode {
Vip,
Dnsrr,
Other(String),
}Expand description
A deploy endpoint mode with unknown provider values retained verbatim.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Vip
Use the virtual-IP service-discovery mode.
Dnsrr
Use DNS round-robin service discovery.
Other(String)
A value outside the documented Compose endpoint modes.
Implementations§
Source§impl DeployEndpointMode
impl DeployEndpointMode
Sourcepub const fn is_documented(&self) -> bool
pub const fn is_documented(&self) -> bool
Returns whether the mode is one of Compose’s documented endpoint modes.
Trait Implementations§
Source§impl Clone for DeployEndpointMode
impl Clone for DeployEndpointMode
Source§fn clone(&self) -> DeployEndpointMode
fn clone(&self) -> DeployEndpointMode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DeployEndpointMode
impl Debug for DeployEndpointMode
impl Eq for DeployEndpointMode
Source§impl PartialEq for DeployEndpointMode
impl PartialEq for DeployEndpointMode
impl StructuralPartialEq for DeployEndpointMode
Auto Trait Implementations§
impl Freeze for DeployEndpointMode
impl RefUnwindSafe for DeployEndpointMode
impl Send for DeployEndpointMode
impl Sync for DeployEndpointMode
impl Unpin for DeployEndpointMode
impl UnsafeUnpin for DeployEndpointMode
impl UnwindSafe for DeployEndpointMode
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