#[non_exhaustive]pub enum WireguardAddressFamily {
Ipv4,
Ipv6,
Other(u16),
}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 WireguardAddressFamily
impl Clone for WireguardAddressFamily
Source§fn clone(&self) -> WireguardAddressFamily
fn clone(&self) -> WireguardAddressFamily
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 Debug for WireguardAddressFamily
impl Debug for WireguardAddressFamily
Source§impl From<u16> for WireguardAddressFamily
impl From<u16> for WireguardAddressFamily
Source§fn from(d: u16) -> WireguardAddressFamily
fn from(d: u16) -> WireguardAddressFamily
Converts to this type from the input type.
Source§impl PartialEq for WireguardAddressFamily
impl PartialEq for WireguardAddressFamily
impl Copy for WireguardAddressFamily
impl Eq for WireguardAddressFamily
impl StructuralPartialEq for WireguardAddressFamily
Auto Trait Implementations§
impl Freeze for WireguardAddressFamily
impl RefUnwindSafe for WireguardAddressFamily
impl Send for WireguardAddressFamily
impl Sync for WireguardAddressFamily
impl Unpin for WireguardAddressFamily
impl UnwindSafe for WireguardAddressFamily
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