pub struct WgDevice { /* private fields */ }Implementations§
Source§impl WgDevice
impl WgDevice
pub fn device_name(&self) -> &str
pub fn public_key(&self) -> Option<&PublicKey>
pub fn private_key(&self) -> Option<&PrivateKey>
pub fn fwmark(&self) -> u32
pub fn listen_port(&self) -> u16
pub fn peers(&self) -> &[Peer]
pub fn has_private_key(&self) -> bool
pub fn has_public_key(&self) -> bool
pub fn has_listen_port(&self) -> bool
pub fn has_fwmark(&self) -> bool
Trait Implementations§
Source§impl From<&WgDevice> for WgDeviceSettings
impl From<&WgDevice> for WgDeviceSettings
Auto Trait Implementations§
impl Freeze for WgDevice
impl RefUnwindSafe for WgDevice
impl Send for WgDevice
impl Sync for WgDevice
impl Unpin for WgDevice
impl UnwindSafe for WgDevice
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