Enum nmstate::LibreswanAddressFamily
source · #[non_exhaustive]pub enum LibreswanAddressFamily {
Ipv4,
Ipv6,
}
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 LibreswanAddressFamily
impl Clone for LibreswanAddressFamily
source§fn clone(&self) -> LibreswanAddressFamily
fn clone(&self) -> LibreswanAddressFamily
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 LibreswanAddressFamily
impl Debug for LibreswanAddressFamily
source§impl Default for LibreswanAddressFamily
impl Default for LibreswanAddressFamily
source§fn default() -> LibreswanAddressFamily
fn default() -> LibreswanAddressFamily
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for LibreswanAddressFamily
impl<'de> Deserialize<'de> for LibreswanAddressFamily
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 LibreswanAddressFamily
impl Display for LibreswanAddressFamily
source§impl PartialEq for LibreswanAddressFamily
impl PartialEq for LibreswanAddressFamily
source§fn eq(&self, other: &LibreswanAddressFamily) -> bool
fn eq(&self, other: &LibreswanAddressFamily) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for LibreswanAddressFamily
impl Serialize for LibreswanAddressFamily
impl Copy for LibreswanAddressFamily
impl Eq for LibreswanAddressFamily
impl StructuralPartialEq for LibreswanAddressFamily
Auto Trait Implementations§
impl Freeze for LibreswanAddressFamily
impl RefUnwindSafe for LibreswanAddressFamily
impl Send for LibreswanAddressFamily
impl Sync for LibreswanAddressFamily
impl Unpin for LibreswanAddressFamily
impl UnwindSafe for LibreswanAddressFamily
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.source§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
source§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.