[][src]Trait readable_perms::ChmodExt

pub trait ChmodExt {
    fn chmod(&self, mode: impl Into<u32>) -> Result<()>;
}

Required methods

fn chmod(&self, mode: impl Into<u32>) -> Result<()>

Loading content...

Implementors

impl<P> ChmodExt for P where
    P: AsRef<Path>, 
[src]

fn chmod(&self, mode: impl Into<u32>) -> Result<()>[src]

Perform chmod on this Path to mode.

Mode can be anything that implements Into<u32>. Permissions does this, you can also pass raw mode_t values.

Notes

If you pass raw mode_t that is outside the range (0..=0o777), any extra bits are ignored.

Loading content...