#[non_exhaustive]pub struct WireguardPeerParsed {
pub endpoint: Option<SocketAddr>,
pub public_key: Option<String>,
pub preshared_key: Option<String>,
pub persistent_keepalive: Option<u16>,
pub last_handshake: Option<Duration>,
pub rx_bytes: Option<u64>,
pub tx_bytes: Option<u64>,
pub allowed_ips: Option<Vec<WireguardIpAddress>>,
pub protocol_version: Option<u32>,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.endpoint: Option<SocketAddr>§public_key: Option<String>Base64 encoded public key
Base64 encoded pre-shared key, this property will be display as
(hidden) for Debug trait.
persistent_keepalive: Option<u16>§last_handshake: Option<Duration>Last handshake time since UNIX_EPOCH
rx_bytes: Option<u64>§tx_bytes: Option<u64>§allowed_ips: Option<Vec<WireguardIpAddress>>§protocol_version: Option<u32>Implementations§
Source§impl WireguardPeerParsed
impl WireguardPeerParsed
pub fn build(&self) -> Result<WireguardPeer, WireguardError>
Trait Implementations§
Source§impl Clone for WireguardPeerParsed
impl Clone for WireguardPeerParsed
Source§fn clone(&self) -> WireguardPeerParsed
fn clone(&self) -> WireguardPeerParsed
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 WireguardPeerParsed
impl Debug for WireguardPeerParsed
Source§impl Default for WireguardPeerParsed
impl Default for WireguardPeerParsed
Source§fn default() -> WireguardPeerParsed
fn default() -> WireguardPeerParsed
Returns the “default value” for a type. Read more
Source§impl From<WireguardPeer> for WireguardPeerParsed
impl From<WireguardPeer> for WireguardPeerParsed
Source§fn from(attrs: WireguardPeer) -> Self
fn from(attrs: WireguardPeer) -> Self
Converts to this type from the input type.
Source§impl PartialEq for WireguardPeerParsed
impl PartialEq for WireguardPeerParsed
impl Eq for WireguardPeerParsed
impl StructuralPartialEq for WireguardPeerParsed
Auto Trait Implementations§
impl Freeze for WireguardPeerParsed
impl RefUnwindSafe for WireguardPeerParsed
impl Send for WireguardPeerParsed
impl Sync for WireguardPeerParsed
impl Unpin for WireguardPeerParsed
impl UnwindSafe for WireguardPeerParsed
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