Enum openstack::network::NetworkProtocol
source · #[non_exhaustive]
pub enum NetworkProtocol {
TCP,
UDP,
}
Expand description
Network IP protocol.
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.
Trait Implementations§
source§impl Clone for NetworkProtocol
impl Clone for NetworkProtocol
source§fn clone(&self) -> NetworkProtocol
fn clone(&self) -> NetworkProtocol
Returns a copy 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 NetworkProtocol
impl Debug for NetworkProtocol
source§impl<'de> Deserialize<'de> for NetworkProtocol
impl<'de> Deserialize<'de> for NetworkProtocol
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 Display for NetworkProtocol
impl Display for NetworkProtocol
source§impl From<NetworkProtocol> for String
impl From<NetworkProtocol> for String
source§fn from(value: NetworkProtocol) -> String
fn from(value: NetworkProtocol) -> String
Converts to this type from the input type.
source§impl PartialEq<NetworkProtocol> for NetworkProtocol
impl PartialEq<NetworkProtocol> for NetworkProtocol
source§fn eq(&self, other: &NetworkProtocol) -> bool
fn eq(&self, other: &NetworkProtocol) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for NetworkProtocol
impl Serialize for NetworkProtocol
impl Copy for NetworkProtocol
impl Eq for NetworkProtocol
impl StructuralEq for NetworkProtocol
impl StructuralPartialEq for NetworkProtocol
Auto Trait Implementations§
impl RefUnwindSafe for NetworkProtocol
impl Send for NetworkProtocol
impl Sync for NetworkProtocol
impl Unpin for NetworkProtocol
impl UnwindSafe for NetworkProtocol
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.