pub struct AllowedIp<'a>(/* private fields */);
Implementations§
Source§impl<'a> AllowedIp<'a>
impl<'a> AllowedIp<'a>
pub unsafe fn from_ptr(ptr: *mut wg_allowedip) -> Option<AllowedIp<'a>>
pub unsafe fn from_non_null(allowedip: NonNull<wg_allowedip>) -> AllowedIp<'a>
pub fn next_allowedip(&self) -> Option<AllowedIp<'a>>
pub fn set_next_allowedip(&mut self, addr: Option<AllowedIp<'a>>)
pub fn ip(&self) -> IpAddr
pub fn cidr(&self) -> u8
pub fn set_cidr(&mut self, cidr: u8)
pub fn set_ip(&mut self, ip: &IpAddr)
Auto Trait Implementations§
impl<'a> Freeze for AllowedIp<'a>
impl<'a> RefUnwindSafe for AllowedIp<'a>
impl<'a> !Send for AllowedIp<'a>
impl<'a> !Sync for AllowedIp<'a>
impl<'a> Unpin for AllowedIp<'a>
impl<'a> UnwindSafe for AllowedIp<'a>
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