Struct netent

#[repr(C)]
pub struct netent { pub n_name: *mut c_char, pub n_aliases: *mut *mut c_char, pub n_addrtype: c_int, pub n_net: u32 }

Fields

n_name: *mut c_char
n_aliases: *mut *mut c_char
n_addrtype: c_int
n_net: u32

Trait Implementations

impl Clone for netent

fn clone(&self) -> netent

impl Copy for netent

impl Debug for netent

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl Eq for netent

impl Hash for netent

fn hash<__H: Hasher>(&self, state: &mut __H)

impl PartialEq for netent

fn eq(&self, other: &netent) -> bool

impl StructuralPartialEq for netent

Auto Trait Implementations

impl !Send for netent

impl !Sync for netent

impl Freeze for netent

impl RefUnwindSafe for netent

impl Unpin for netent

impl UnsafeUnpin for netent

impl UnwindSafe for netent

Blanket Implementations

impl<T> Any for netent where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for netent where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for netent where T: ?Sized,

fn borrow_mut(&mut self) -> &mut T

impl<T> CloneToUninit for netent where T: Clone,

unsafe fn clone_to_uninit(&self, dest: *mut u8)

impl<T> From<T> for netent

fn from(t: T) -> T

Returns the argument unchanged.

impl<T, U> Into<U> for netent where U: From<T>,

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom<U> for netent where U: Into<T>,

type Error = never;
fn try_from(value: U) -> Result<T, never>

impl<T, U> TryInto<U> for netent where U: TryFrom<T>,

type Error = <U as TryFrom<T>>::Error;
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>