pub struct Ifaddrs { /* private fields */ }
Implementations§
Source§impl Ifaddrs
impl Ifaddrs
Sourcepub fn new_zeroed_on_heap() -> Self
pub fn new_zeroed_on_heap() -> Self
creates zeroed struct where the underlying c struct is on the heap
Sourcepub fn new_zeroed_on_stack() -> Self
pub fn new_zeroed_on_stack() -> Self
creates zeroed struct where the underlying c struct is on the stack (Use with care)
pub fn ifa_next(&self) -> Ifaddrs
pub fn ifa_name(&self) -> &str
pub fn ifa_flags(&self) -> c_uint
pub fn ifa_addr(&self) -> Sockaddr
pub fn ifa_netmask(&self) -> Sockaddr
pub fn ifa_dstaddr(&self) -> Sockaddr
pub fn ifa_data(&self) -> *mut c_void
pub fn aeron_frees(&self)
pub fn get_inner(&self) -> *mut ifaddrs
pub fn get_inner_mut(&self) -> &mut ifaddrs
pub fn get_inner_ref(&self) -> &ifaddrs
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Ifaddrs
impl !RefUnwindSafe for Ifaddrs
impl !Send for Ifaddrs
impl !Sync for Ifaddrs
impl Unpin for Ifaddrs
impl !UnwindSafe for Ifaddrs
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