Struct passwd

#[repr(C)]
pub struct passwd { pub pw_name: *mut c_char, pub pw_passwd: *mut c_char, pub pw_uid: uid_t, pub pw_gid: gid_t, pub pw_gecos: *mut c_char, pub pw_dir: *mut c_char, pub pw_shell: *mut c_char }

Fields

pw_name: *mut c_char
pw_passwd: *mut c_char
pw_uid: uid_t
pw_gid: gid_t
pw_gecos: *mut c_char
pw_dir: *mut c_char
pw_shell: *mut c_char

Trait Implementations

impl Clone for passwd

fn clone(&self) -> Self

impl Copy for passwd

impl Debug for passwd

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

impl Eq for passwd

impl Hash for passwd

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

impl PartialEq for passwd

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

impl StructuralPartialEq for passwd

Auto Trait Implementations

impl !Send for passwd

impl !Sync for passwd

impl Freeze for passwd

impl RefUnwindSafe for passwd

impl Unpin for passwd

impl UnsafeUnpin for passwd

impl UnwindSafe for passwd

Blanket Implementations

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

fn type_id(&self) -> TypeId

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

fn borrow(&self) -> &T

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

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

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

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

impl<T> From<T> for passwd

fn from(t: T) -> T

Returns the argument unchanged.

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

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

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

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