pub enum IoK8sApiCoreV1ContainerPortProtocol {
Sctp,
Tcp,
Udp,
}
Expand description
Protocol for port. Must be UDP, TCP, or SCTP. Defaults to “TCP”.
Possible enum values:
"SCTP"
is the SCTP protocol."TCP"
is the TCP protocol."UDP"
is the UDP protocol.
Variants§
Trait Implementations§
Source§impl Clone for IoK8sApiCoreV1ContainerPortProtocol
impl Clone for IoK8sApiCoreV1ContainerPortProtocol
Source§fn clone(&self) -> IoK8sApiCoreV1ContainerPortProtocol
fn clone(&self) -> IoK8sApiCoreV1ContainerPortProtocol
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<'de> Deserialize<'de> for IoK8sApiCoreV1ContainerPortProtocol
impl<'de> Deserialize<'de> for IoK8sApiCoreV1ContainerPortProtocol
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 From<&IoK8sApiCoreV1ContainerPortProtocol> for IoK8sApiCoreV1ContainerPortProtocol
impl From<&IoK8sApiCoreV1ContainerPortProtocol> for IoK8sApiCoreV1ContainerPortProtocol
Source§fn from(value: &IoK8sApiCoreV1ContainerPortProtocol) -> Self
fn from(value: &IoK8sApiCoreV1ContainerPortProtocol) -> Self
Converts to this type from the input type.
Source§impl Ord for IoK8sApiCoreV1ContainerPortProtocol
impl Ord for IoK8sApiCoreV1ContainerPortProtocol
Source§fn cmp(&self, other: &IoK8sApiCoreV1ContainerPortProtocol) -> Ordering
fn cmp(&self, other: &IoK8sApiCoreV1ContainerPortProtocol) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for IoK8sApiCoreV1ContainerPortProtocol
impl PartialEq for IoK8sApiCoreV1ContainerPortProtocol
Source§fn eq(&self, other: &IoK8sApiCoreV1ContainerPortProtocol) -> bool
fn eq(&self, other: &IoK8sApiCoreV1ContainerPortProtocol) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.Source§impl PartialOrd for IoK8sApiCoreV1ContainerPortProtocol
impl PartialOrd for IoK8sApiCoreV1ContainerPortProtocol
Source§impl TryFrom<&str> for IoK8sApiCoreV1ContainerPortProtocol
impl TryFrom<&str> for IoK8sApiCoreV1ContainerPortProtocol
impl Copy for IoK8sApiCoreV1ContainerPortProtocol
impl Eq for IoK8sApiCoreV1ContainerPortProtocol
impl StructuralPartialEq for IoK8sApiCoreV1ContainerPortProtocol
Auto Trait Implementations§
impl Freeze for IoK8sApiCoreV1ContainerPortProtocol
impl RefUnwindSafe for IoK8sApiCoreV1ContainerPortProtocol
impl Send for IoK8sApiCoreV1ContainerPortProtocol
impl Sync for IoK8sApiCoreV1ContainerPortProtocol
impl Unpin for IoK8sApiCoreV1ContainerPortProtocol
impl UnwindSafe for IoK8sApiCoreV1ContainerPortProtocol
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