[][src]Struct umanux::userlib::files::Files

pub struct Files {
    pub passwd: Option<PathBuf>,
    pub shadow: Option<PathBuf>,
    pub group: Option<PathBuf>,
}

Fields

passwd: Option<PathBuf>shadow: Option<PathBuf>group: Option<PathBuf>

Implementations

impl Files[src]

#[must_use]pub const fn is_virtual(&self) -> bool[src]

Check if all the files are defined. Because some operations require the files to be present

pub fn lock_and_get_passwd(&self) -> Result<LockedFileGuard, UserLibError>[src]

pub fn lock_and_get_shadow(&self) -> Result<LockedFileGuard, UserLibError>[src]

pub fn lock_and_get_group(&self) -> Result<LockedFileGuard, UserLibError>[src]

pub fn lock_all_get(
    &self
) -> Result<(LockedFileGuard, LockedFileGuard, LockedFileGuard), UserLibError>
[src]

Trait Implementations

impl Debug for Files[src]

impl Default for Files[src]

pub fn default() -> Self[src]

use the default Linux /etc/ paths

Auto Trait Implementations

impl RefUnwindSafe for Files

impl Send for Files

impl Sync for Files

impl Unpin for Files

impl UnwindSafe for Files

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.