pub struct InterfaceConfiguration {
pub name: String,
pub prvkey: String,
pub addresses: Vec<IpAddrMask>,
pub port: u32,
pub peers: Vec<Peer>,
pub mtu: Option<u32>,
}
Expand description
Host WireGuard interface configuration.
Fields§
§name: String
§prvkey: String
§addresses: Vec<IpAddrMask>
§port: u32
§peers: Vec<Peer>
§mtu: Option<u32>
Maximum transfer unit. None
means do not set MTU, but keep the system default.
Trait Implementations§
Source§impl Clone for InterfaceConfiguration
impl Clone for InterfaceConfiguration
Source§fn clone(&self) -> InterfaceConfiguration
fn clone(&self) -> InterfaceConfiguration
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const 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
Source§type Error = WireguardInterfaceError
type Error = WireguardInterfaceError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for InterfaceConfiguration
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