Trait file_mode::ModePath[][src]

pub trait ModePath {
    fn mode(&self) -> Result<Mode, Error>;
fn set_mode<'s, M: Into<SetMode<'s>>>(
        &self,
        mode: M
    ) -> Result<u32, ModeError>; }

Extension methods for objects that can reference as Path.

Required methods

fn mode(&self) -> Result<Mode, Error>[src]

Constructs Mode from mode value of the file.

See Mode::from_path for details.

fn set_mode<'s, M: Into<SetMode<'s>>>(&self, mode: M) -> Result<u32, ModeError>[src]

Sets the mode of the file, represented by this path, by applying the mode changes to its current mode.

See Mode::set_mode_path for details.

Loading content...

Implementors

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

Loading content...