Struct wgctrl_rs::AllowedIp [−][src]
Represents an IP address a peer is allowed to have, in CIDR notation.
This may have unexpected semantics - refer to the WireGuard documentation for more information on how routing is implemented.
Fields
address: IpAddr
The IP address.
cidr: u8
The CIDR subnet mask.
Trait Implementations
impl Debug for AllowedIp
[src]
impl Debug for AllowedIp
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for AllowedIp
[src]
impl PartialEq for AllowedIp
fn eq(&self, other: &AllowedIp) -> bool
[src]
fn eq(&self, other: &AllowedIp) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &AllowedIp) -> bool
[src]
fn ne(&self, other: &AllowedIp) -> bool
This method tests for !=
.
impl Eq for AllowedIp
[src]
impl Eq for AllowedIp
impl Clone for AllowedIp
[src]
impl Clone for AllowedIp
fn clone(&self) -> AllowedIp
[src]
fn clone(&self) -> AllowedIp
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl<'a> From<&'a wg_allowedip> for AllowedIp
[src]
impl<'a> From<&'a wg_allowedip> for AllowedIp
fn from(raw: &wg_allowedip) -> AllowedIp
[src]
fn from(raw: &wg_allowedip) -> AllowedIp
Performs the conversion.