Struct hostent

#[repr(C)]
pub struct hostent { pub h_name: *mut c_char, pub h_aliases: *mut *mut c_char, pub h_addrtype: c_int, pub h_length: c_int, pub h_addr_list: *mut *mut c_char }

Fields

h_name: *mut c_char
h_aliases: *mut *mut c_char
h_addrtype: c_int
h_length: c_int
h_addr_list: *mut *mut c_char

Trait Implementations

impl Clone for hostent

fn clone(&self) -> hostent

impl Copy for hostent

impl Debug for hostent

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

impl Eq for hostent

impl Hash for hostent

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

impl PartialEq for hostent

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

impl StructuralPartialEq for hostent

Auto Trait Implementations

impl !Send for hostent

impl !Sync for hostent

impl Freeze for hostent

impl RefUnwindSafe for hostent

impl Unpin for hostent

impl UnsafeUnpin for hostent

impl UnwindSafe for hostent

Blanket Implementations

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

fn type_id(&self) -> TypeId

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

fn borrow(&self) -> &T

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

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

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

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

impl<T> From<T> for hostent

fn from(t: T) -> T

Returns the argument unchanged.

impl<T, U> Into<U> for hostent 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 hostent where U: Into<T>,

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

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

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