[−][src]Struct fungus::sys::Chmod
Chmod provides flexible options for changing file permission with optional configuration.
Methods
impl Chmod
[src]
ⓘImportant traits for &'_ mut Wpub fn all(&mut self) -> &mut Self
[src]
Target all files and directories. Default is enabled.
ⓘImportant traits for &'_ mut Wpub fn dirs(&mut self) -> &mut Self
[src]
Target only directories. Default is disabled.
ⓘImportant traits for &'_ mut Wpub fn files(&mut self) -> &mut Self
[src]
Target only files. Default is disabled.
ⓘImportant traits for &'_ mut Wpub 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
ⓘImportant traits for &'_ mut Wpub fn add_r(&mut self) -> &mut Self
[src]
Update the mode
option to add read permission to all.
ⓘImportant traits for &'_ mut Wpub fn add_w(&mut self) -> &mut Self
[src]
Update the mode
option to add write permission to all.
ⓘImportant traits for &'_ mut Wpub fn add_x(&mut self) -> &mut Self
[src]
Update the mode
option to add execute permission to all.
ⓘImportant traits for &'_ mut Wpub fn readonly(&mut self) -> &mut Self
[src]
Update the mode
option to make readonly.
ⓘImportant traits for &'_ mut Wpub fn secure(&mut self) -> &mut Self
[src]
Update the mode
option to drop group and other permissions.
ⓘImportant traits for &'_ mut Wpub fn sub_r(&mut self) -> &mut Self
[src]
Update the mode
option to subtract read permission from all.
ⓘImportant traits for &'_ mut Wpub fn sub_w(&mut self) -> &mut Self
[src]
Update the mode
option to subtract write permission from all.
ⓘImportant traits for &'_ mut Wpub fn sub_x(&mut self) -> &mut Self
[src]
Update the mode
option to subtract execute permission from all.
ⓘImportant traits for &'_ mut Wpub fn path<T: AsRef<Path>>(&mut self, path: T) -> &mut Self
[src]
Update the path
option.
ⓘImportant traits for &'_ mut Wpub 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) -> Result<()>
[src]
Execute the Chmod
options against the set path
with the set mode
.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Chmod
impl Send for Chmod
impl Sync for Chmod
impl Unpin for Chmod
impl UnwindSafe for Chmod
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,
ⓘImportant traits for &'_ mut Wfn 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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
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.
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,