#[non_exhaustive]pub enum WireguardPeerAttribute {
PublicKey([u8; 32]),
PresharedKey([u8; 32]),
Endpoint(SocketAddr),
PersistentKeepalive(u16),
LastHandshake(WireguardTimeSpec),
RxBytes(u64),
TxBytes(u64),
AllowedIps(Vec<WireguardAllowedIp>),
ProtocolVersion(u32),
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.
PublicKey([u8; 32])
Endpoint(SocketAddr)
PersistentKeepalive(u16)
LastHandshake(WireguardTimeSpec)
RxBytes(u64)
TxBytes(u64)
AllowedIps(Vec<WireguardAllowedIp>)
ProtocolVersion(u32)
Flags(u32)
Other(DefaultNla)
Trait Implementations§
Source§impl Clone for WireguardPeerAttribute
impl Clone for WireguardPeerAttribute
Source§fn clone(&self) -> WireguardPeerAttribute
fn clone(&self) -> WireguardPeerAttribute
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 WireguardPeerAttribute
impl Debug for WireguardPeerAttribute
Source§impl Nla for WireguardPeerAttribute
impl Nla for WireguardPeerAttribute
Source§impl<'a, T> Parseable<NlaBuffer<&'a T>> for WireguardPeerAttribute
impl<'a, T> Parseable<NlaBuffer<&'a T>> for WireguardPeerAttribute
Source§fn parse(buf: &NlaBuffer<&'a T>) -> Result<WireguardPeerAttribute, DecodeError>
fn parse(buf: &NlaBuffer<&'a T>) -> Result<WireguardPeerAttribute, DecodeError>
Deserialize the current type.
Source§impl PartialEq for WireguardPeerAttribute
impl PartialEq for WireguardPeerAttribute
impl Eq for WireguardPeerAttribute
impl StructuralPartialEq for WireguardPeerAttribute
Auto Trait Implementations§
impl Freeze for WireguardPeerAttribute
impl RefUnwindSafe for WireguardPeerAttribute
impl Send for WireguardPeerAttribute
impl Sync for WireguardPeerAttribute
impl Unpin for WireguardPeerAttribute
impl UnsafeUnpin for WireguardPeerAttribute
impl UnwindSafe for WireguardPeerAttribute
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