#[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
sourceimpl<'de> Deserialize<'de> for WaitIp
impl<'de> Deserialize<'de> for WaitIp
sourcefn 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
impl Copy for WaitIp
impl Eq for WaitIp
impl StructuralEq for WaitIp
impl StructuralPartialEq for WaitIp
Auto Trait Implementations
impl RefUnwindSafe for WaitIp
impl Send for WaitIp
impl Sync for WaitIp
impl Unpin for WaitIp
impl UnwindSafe for WaitIp
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<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,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.