#[non_exhaustive]pub enum WireguardAttribute {
IfIndex(u32),
IfName(String),
PrivateKey([u8; 32]),
PublicKey([u8; 32]),
ListenPort(u16),
Fwmark(u32),
Peers(Vec<WireguardPeer>),
Flags(u32),
Other(DefaultNla),
}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.
IfIndex(u32)
IfName(String)
PrivateKey([u8; 32])
PublicKey([u8; 32])
ListenPort(u16)
Fwmark(u32)
Peers(Vec<WireguardPeer>)
Flags(u32)
Other(DefaultNla)
Implementations§
Source§impl WireguardAttribute
impl WireguardAttribute
pub const WG_KEY_LEN: usize = WG_KEY_LEN
Trait Implementations§
Source§impl Clone for WireguardAttribute
impl Clone for WireguardAttribute
Source§fn clone(&self) -> WireguardAttribute
fn clone(&self) -> WireguardAttribute
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 WireguardAttribute
impl Debug for WireguardAttribute
Source§impl Nla for WireguardAttribute
impl Nla for WireguardAttribute
Source§impl<'a, T> Parseable<NlaBuffer<&'a T>> for WireguardAttribute
impl<'a, T> Parseable<NlaBuffer<&'a T>> for WireguardAttribute
Source§fn parse(buf: &NlaBuffer<&'a T>) -> Result<WireguardAttribute, DecodeError>
fn parse(buf: &NlaBuffer<&'a T>) -> Result<WireguardAttribute, DecodeError>
Deserialize the current type.
Source§impl PartialEq for WireguardAttribute
impl PartialEq for WireguardAttribute
impl Eq for WireguardAttribute
impl StructuralPartialEq for WireguardAttribute
Auto Trait Implementations§
impl Freeze for WireguardAttribute
impl RefUnwindSafe for WireguardAttribute
impl Send for WireguardAttribute
impl Sync for WireguardAttribute
impl Unpin for WireguardAttribute
impl UnwindSafe for WireguardAttribute
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