Trait file_mode::ModeFile[][src]

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

Extension methods for File.

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 this file by applying the mode changes to its current mode.

See Mode::set_mode_file.

Loading content...

Implementations on Foreign Types

impl ModeFile for File[src]

Loading content...

Implementors

Loading content...