Struct servent

#[repr(C)]
pub struct servent { pub s_name: *mut c_char, pub s_aliases: *mut *mut c_char, pub s_port: c_int, pub s_proto: *mut c_char }

Fields

s_name: *mut c_char
s_aliases: *mut *mut c_char
s_port: c_int
s_proto: *mut c_char

Trait Implementations

impl Clone for servent

fn clone(&self) -> servent

impl Copy for servent

impl Debug for servent

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

impl Eq for servent

impl Hash for servent

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

impl PartialEq for servent

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

impl StructuralPartialEq for servent

Auto Trait Implementations

impl !Send for servent

impl !Sync for servent

impl Freeze for servent

impl RefUnwindSafe for servent

impl Unpin for servent

impl UnsafeUnpin for servent

impl UnwindSafe for servent

Blanket Implementations

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

fn type_id(&self) -> TypeId

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

fn borrow(&self) -> &T

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

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

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

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

impl<T> From<T> for servent

fn from(t: T) -> T

Returns the argument unchanged.

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

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

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

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