pub struct WireguardInterface {
pub flags: c_int,
pub listen_port: u16,
pub private_key: [u8; 32],
pub public_key: [u8; 32],
pub peers: Vec<WireguardPeer>,
}
Fields§
§flags: c_int
Bitwise combination of flags
listen_port: u16
Port for UDP listen socket, or 0 to choose randomly
private_key: [u8; 32]
Private key of interface
public_key: [u8; 32]
Corresponding public key of private key
peers: Vec<WireguardPeer>
Number of peer structs following this struct
Trait Implementations§
Auto Trait Implementations§
impl Freeze for WireguardInterface
impl RefUnwindSafe for WireguardInterface
impl Send for WireguardInterface
impl Sync for WireguardInterface
impl Unpin for WireguardInterface
impl UnwindSafe for WireguardInterface
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