Struct wireguard_uapi::get::Peer
source · [−]pub struct Peer {
pub public_key: [u8; 32],
pub preshared_key: [u8; 32],
pub endpoint: Option<SocketAddr>,
pub persistent_keepalive_interval: u16,
pub last_handshake_time: Duration,
pub rx_bytes: u64,
pub tx_bytes: u64,
pub allowed_ips: Vec<AllowedIp>,
pub protocol_version: u32,
}Fields
public_key: [u8; 32]endpoint: Option<SocketAddr>persistent_keepalive_interval: u16last_handshake_time: Durationrx_bytes: u64tx_bytes: u64allowed_ips: Vec<AllowedIp>protocol_version: u32Trait Implementations
impl StructuralPartialEq for Peer
Auto Trait Implementations
impl RefUnwindSafe for Peer
impl Send for Peer
impl Sync for Peer
impl Unpin for Peer
impl UnwindSafe for Peer
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more