pub struct InterfaceConfiguration {
pub name: String,
pub prvkey: String,
pub address: String,
pub port: u32,
pub peers: Vec<Peer>,
}
Expand description
Host WireGuard interface configuration
Fields§
§name: String
§prvkey: String
§address: String
§port: u32
§peers: Vec<Peer>
Trait Implementations§
source§impl Clone for InterfaceConfiguration
impl Clone for InterfaceConfiguration
source§fn clone(&self) -> InterfaceConfiguration
fn clone(&self) -> InterfaceConfiguration
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for InterfaceConfiguration
impl Debug for InterfaceConfiguration
source§impl<'de> Deserialize<'de> for InterfaceConfiguration
impl<'de> Deserialize<'de> for InterfaceConfiguration
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 Serialize for InterfaceConfiguration
impl Serialize for InterfaceConfiguration
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 InterfaceConfiguration
impl Send for InterfaceConfiguration
impl Sync for InterfaceConfiguration
impl Unpin for InterfaceConfiguration
impl UnwindSafe for InterfaceConfiguration
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