Struct ifreq
#[repr(C)]
pub struct ifreq { pub ifr_name: [c_char; 16], pub ifr_ifru: __c_anonymous_ifr_ifru }
Fields
ifr_name: [c_char; 16]interface name, e.g. "en0"
ifr_ifru: __c_anonymous_ifr_ifru
Trait Implementations
impl Clone for ifreq
fn clone(&self) -> Self
impl Copy for ifreq
impl Debug for ifreq
fn fmt(&self, f: &mut Formatter<'_>) -> Result
Auto Trait Implementations
impl !Send for ifreq
impl !Sync for ifreq
impl Freeze for ifreq
impl RefUnwindSafe for ifreq
impl Unpin for ifreq
impl UnsafeUnpin for ifreq
impl UnwindSafe for ifreq
Blanket Implementations
impl<T> Any for ifreq
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for ifreq
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for ifreq
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for ifreq
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for ifreq
fn from(t: T) -> TReturns the argument unchanged.
impl<T, U> Into<U> for ifreq
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 ifreq
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for ifreq
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>