Struct ifaddrs
#[repr(C)]
pub struct ifaddrs { pub ifa_next: *mut ifaddrs, pub ifa_name: *mut c_char, pub ifa_flags: c_uint, pub ifa_addr: *mut sockaddr, pub ifa_netmask: *mut sockaddr, pub ifa_ifu: *mut sockaddr, pub ifa_data: *mut c_void }
Fields
ifa_next: *mut ifaddrsifa_name: *mut c_charifa_flags: c_uintifa_addr: *mut sockaddrifa_netmask: *mut sockaddrifa_ifu: *mut sockaddrifa_data: *mut c_void
Trait Implementations
impl Clone for ifaddrs
fn clone(&self) -> ifaddrs
impl Copy for ifaddrs
impl Debug for ifaddrs
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Eq for ifaddrs
impl Hash for ifaddrs
fn hash<__H: Hasher>(&self, state: &mut __H)
impl PartialEq for ifaddrs
fn eq(&self, other: &ifaddrs) -> bool
impl StructuralPartialEq for ifaddrs
Auto Trait Implementations
impl !Send for ifaddrs
impl !Sync for ifaddrs
impl Freeze for ifaddrs
impl RefUnwindSafe for ifaddrs
impl Unpin for ifaddrs
impl UnsafeUnpin for ifaddrs
impl UnwindSafe for ifaddrs
Blanket Implementations
impl<T> Any for ifaddrs
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for ifaddrs
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for ifaddrs
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for ifaddrs
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for ifaddrs
fn from(t: T) -> TReturns the argument unchanged.
impl<T, U> Into<U> for ifaddrs
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for ifaddrs
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for ifaddrs
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>