Struct wgctrl_rs::AllowedIp[][src]

pub struct AllowedIp {
    pub address: IpAddr,
    pub cidr: u8,
}

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

The IP address.

The CIDR subnet mask.

Trait Implementations

impl Debug for AllowedIp
[src]

Formats the value using the given formatter. Read more

impl PartialEq for AllowedIp
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for AllowedIp
[src]

impl Clone for AllowedIp
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<'a> From<&'a wg_allowedip> for AllowedIp
[src]

Performs the conversion.

Auto Trait Implementations

impl Send for AllowedIp

impl Sync for AllowedIp