[−][src]Struct fungus::sys::Chmod
Chmod provides flexible options for changing file permission with optional configuration.
Implementations
impl Chmod
[src]
pub fn all(&mut self) -> &mut Selfⓘ
[src]
Target all files and directories. Default is enabled.
pub fn dirs(&mut self) -> &mut Selfⓘ
[src]
Target only directories. Default is disabled.
pub fn files(&mut self) -> &mut Selfⓘ
[src]
Target only files. Default is disabled.
pub fn mode(&mut self, mode: u32) -> &mut Selfⓘ
[src]
Update the mode
option. Default is the current file's mode or to 0o644 if it doesn't exist
pub fn add_r(&mut self) -> &mut Selfⓘ
[src]
Update the mode
option to add read permission to all.
pub fn add_w(&mut self) -> &mut Selfⓘ
[src]
Update the mode
option to add write permission to all.
pub fn add_x(&mut self) -> &mut Selfⓘ
[src]
Update the mode
option to add execute permission to all.
pub fn readonly(&mut self) -> &mut Selfⓘ
[src]
Update the mode
option to make readonly.
pub fn secure(&mut self) -> &mut Selfⓘ
[src]
Update the mode
option to drop group and other permissions.
pub fn sub_r(&mut self) -> &mut Selfⓘ
[src]
Update the mode
option to subtract read permission from all.
pub fn sub_w(&mut self) -> &mut Selfⓘ
[src]
Update the mode
option to subtract write permission from all.
pub fn sub_x(&mut self) -> &mut Selfⓘ
[src]
Update the mode
option to subtract execute permission from all.
pub fn path<T: AsRef<Path>>(&mut self, path: T) -> &mut Selfⓘ
[src]
Update the path
option.
pub fn recurse(&mut self, yes: bool) -> &mut Selfⓘ
[src]
Update the recurse
option. Default is enabled.
When yes
is true
, source is recursively walked.
pub fn chmod(&self) -> FuResult<()>
[src]
Execute the Chmod
options against the set path
with the set mode
.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Chmod
[src]
impl Send for Chmod
[src]
impl Sync for Chmod
[src]
impl Unpin for Chmod
[src]
impl UnwindSafe for Chmod
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut Tⓘ
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,