#[repr(C)]pub struct wg_peer {
pub flags: wg_peer_flags,
pub public_key: wg_key,
pub preshared_key: wg_key,
pub endpoint: wg_peer__bindgen_ty_1,
pub last_handshake_time: timespec64,
pub rx_bytes: u64,
pub tx_bytes: u64,
pub persistent_keepalive_interval: u16,
pub first_allowedip: *mut wg_allowedip,
pub last_allowedip: *mut wg_allowedip,
pub next_peer: *mut wg_peer,
}
Fields§
§flags: wg_peer_flags
§public_key: wg_key
§endpoint: wg_peer__bindgen_ty_1
§last_handshake_time: timespec64
§rx_bytes: u64
§tx_bytes: u64
§persistent_keepalive_interval: u16
§first_allowedip: *mut wg_allowedip
§last_allowedip: *mut wg_allowedip
§next_peer: *mut wg_peer
Trait Implementations§
impl Copy for wg_peer
Auto Trait Implementations§
impl Freeze for wg_peer
impl RefUnwindSafe for wg_peer
impl !Send for wg_peer
impl !Sync for wg_peer
impl Unpin for wg_peer
impl UnwindSafe for wg_peer
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