Struct defguard_wireguard_rs::host::Host
source · pub struct Host {
pub listen_port: u16,
pub private_key: Option<Key>,
pub peers: HashMap<Key, Peer>,
/* private fields */
}
Expand description
WireGuard host representation.
Fields§
§listen_port: u16
§private_key: Option<Key>
§peers: HashMap<Key, Peer>
Implementations§
source§impl Host
impl Host
pub fn append_nlas(&mut self, nlas: &[WgDeviceAttrs])
pub fn as_nlas(&self, ifname: &str) -> Vec<WgDeviceAttrs>
Trait Implementations§
source§impl<'de> Deserialize<'de> for Host
impl<'de> Deserialize<'de> for Host
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl TryFrom<&InterfaceConfiguration> for Host
impl TryFrom<&InterfaceConfiguration> for Host
§type Error = WireguardInterfaceError
type Error = WireguardInterfaceError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl RefUnwindSafe for Host
impl Send for Host
impl Sync for Host
impl Unpin for Host
impl UnwindSafe for Host
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