#[non_exhaustive]pub enum WaitIp {
Any,
Ipv4,
Ipv6,
Ipv4AndIpv6,
}
Expand description
Which IP stack should network backend wait before considering the interface activation finished.
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.
Any
The activation is considered done once IPv4 stack or IPv6 stack is
configure
Serialize and deserialize to/from any
.
Ipv4
The activation is considered done once IPv4 stack is configured.
Serialize and deserialize to/from ipv4
.
Ipv6
The activation is considered done once IPv6 stack is configured.
Serialize and deserialize to/from ipv6
.
Ipv4AndIpv6
The activation is considered done once both IPv4 and IPv6 stack are
configured.
Serialize and deserialize to/from ipv4+ipv6
.
Trait Implementations§
source§impl<'de> Deserialize<'de> for WaitIp
impl<'de> Deserialize<'de> for WaitIp
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 WaitIp
impl PartialEq for WaitIp
impl Copy for WaitIp
impl Eq for WaitIp
impl StructuralPartialEq for WaitIp
Auto Trait Implementations§
impl Freeze for WaitIp
impl RefUnwindSafe for WaitIp
impl Send for WaitIp
impl Sync for WaitIp
impl Unpin for WaitIp
impl UnwindSafe for WaitIp
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<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.