Trait file_owner::PathExt[][src]

pub trait PathExt {
    fn set_owner<E: Into<FileOwnerError>>(
        &self,
        owner: impl TryInto<Owner, Error = E>
    ) -> Result<(), FileOwnerError>;
fn set_group<E: Into<FileOwnerError>>(
        &self,
        group: impl TryInto<Group, Error = E>
    ) -> Result<(), FileOwnerError>;
fn set_owner_group<E1: Into<FileOwnerError>, E2: Into<FileOwnerError>>(
        &self,
        owner: impl TryInto<Owner, Error = E1>,
        group: impl TryInto<Group, Error = E2>
    ) -> Result<(), FileOwnerError>;
fn owner(&self) -> Result<Owner, FileOwnerError>;
fn group(&self) -> Result<Group, FileOwnerError>;
fn owner_group(&self) -> Result<(Owner, Group), FileOwnerError>; }

Extension methods for T: AsRef<Path>.

Required methods

fn set_owner<E: Into<FileOwnerError>>(
    &self,
    owner: impl TryInto<Owner, Error = E>
) -> Result<(), FileOwnerError>
[src]

Sets owner to file at the given path.

fn set_group<E: Into<FileOwnerError>>(
    &self,
    group: impl TryInto<Group, Error = E>
) -> Result<(), FileOwnerError>
[src]

Sets group to file at the given path.

fn set_owner_group<E1: Into<FileOwnerError>, E2: Into<FileOwnerError>>(
    &self,
    owner: impl TryInto<Owner, Error = E1>,
    group: impl TryInto<Group, Error = E2>
) -> Result<(), FileOwnerError>
[src]

Sets owner and group to file at the given path.

fn owner(&self) -> Result<Owner, FileOwnerError>[src]

Gets owner of a file at the given path.

fn group(&self) -> Result<Group, FileOwnerError>[src]

Gets group of a file at the given path.

fn owner_group(&self) -> Result<(Owner, Group), FileOwnerError>[src]

Gets owner and group of a file at the given path.

Loading content...

Implementors

impl<T: AsRef<Path>> PathExt for T[src]

Loading content...