pub struct AllowedIp {
pub address: IpAddr,
pub cidr: u8,
}
Expand description
Represents an IP address a peer is allowed to have, in CIDR notation.
Fields§
§address: IpAddr
The IP address.
cidr: u8
The CIDR subnet mask.
Trait Implementations§
Source§impl TryFrom<WgAllowedIp> for AllowedIp
impl TryFrom<WgAllowedIp> for AllowedIp
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