Trait file_owner::PathExt [−][src]
Extension methods for T: AsRef<Path>
.
Required methods
fn set_owner<E: Into<FileOwnerError>>(
&self,
owner: impl TryInto<Owner, Error = E>
) -> Result<(), FileOwnerError>
[src]
&self,
owner: impl TryInto<Owner, Error = E>
) -> Result<(), FileOwnerError>
Sets owner to file at the given path.
fn set_group<E: Into<FileOwnerError>>(
&self,
group: impl TryInto<Group, Error = E>
) -> Result<(), FileOwnerError>
[src]
&self,
group: impl TryInto<Group, Error = E>
) -> Result<(), FileOwnerError>
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]
&self,
owner: impl TryInto<Owner, Error = E1>,
group: impl TryInto<Group, Error = E2>
) -> Result<(), FileOwnerError>
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.
Implementors
impl<T: AsRef<Path>> PathExt for T
[src]
fn set_owner<E: Into<FileOwnerError>>(
&self,
owner: impl TryInto<Owner, Error = E>
) -> Result<(), FileOwnerError>
[src]
&self,
owner: impl TryInto<Owner, Error = E>
) -> Result<(), FileOwnerError>
fn set_group<E: Into<FileOwnerError>>(
&self,
group: impl TryInto<Group, Error = E>
) -> Result<(), FileOwnerError>
[src]
&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>
[src]
&self,
owner: impl TryInto<Owner, Error = E1>,
group: impl TryInto<Group, Error = E2>
) -> Result<(), FileOwnerError>