pub struct AllowedIp {
pub family: u16,
pub ipaddr: IpAddr,
pub cidr_mask: u8,
}
Fields§
§family: u16
§ipaddr: IpAddr
§cidr_mask: u8
Trait Implementations§
Source§impl TryFrom<AttrHandle<'_, GenlBuffer<WgAllowedIpAttribute, Buffer>, Nlattr<WgAllowedIpAttribute, Buffer>>> for AllowedIp
impl TryFrom<AttrHandle<'_, GenlBuffer<WgAllowedIpAttribute, Buffer>, Nlattr<WgAllowedIpAttribute, Buffer>>> for AllowedIp
Source§type Error = ParseDeviceError
type Error = ParseDeviceError
The type returned in the event of a conversion error.
Source§fn try_from(
handle: AttrHandle<'_, GenlBuffer<WgAllowedIpAttribute, Buffer>, Nlattr<WgAllowedIpAttribute, Buffer>>,
) -> Result<Self, Self::Error>
fn try_from( handle: AttrHandle<'_, GenlBuffer<WgAllowedIpAttribute, Buffer>, Nlattr<WgAllowedIpAttribute, Buffer>>, ) -> Result<Self, Self::Error>
Performs the conversion.
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