pub struct AllowedIp {
pub address: IpAddr,
pub cidr: u8,
}Expand description
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: IpAddrThe IP address.
cidr: u8The CIDR subnet mask.
Trait Implementations§
Source§impl<'a> From<&'a wg_allowedip> for AllowedIp
impl<'a> From<&'a wg_allowedip> for AllowedIp
Source§fn from(raw: &wg_allowedip) -> AllowedIp
fn from(raw: &wg_allowedip) -> AllowedIp
Converts to this type from the input type.
impl Eq for AllowedIp
impl StructuralPartialEq for AllowedIp
Auto Trait Implementations§
impl Freeze for AllowedIp
impl RefUnwindSafe for AllowedIp
impl Send for AllowedIp
impl Sync for AllowedIp
impl Unpin for AllowedIp
impl UnwindSafe for AllowedIp
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