pub struct FileMode { /* private fields */ }Expand description
The file/dir permissions for owner/group/everyone else.
Implementations§
source§impl FileMode
impl FileMode
sourcepub fn setuid(&self) -> bool
pub fn setuid(&self) -> bool
Executable files with this bit set will run with effective uid set to the uid of the file owner.
sourcepub fn setgid(&self) -> bool
pub fn setgid(&self) -> bool
Executable files with this bit set will run with effective gid set to the gid of the file owner.
Trait Implementations§
source§impl Ord for FileMode
impl Ord for FileMode
source§impl PartialEq for FileMode
impl PartialEq for FileMode
source§impl PartialOrd for FileMode
impl PartialOrd for FileMode
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl Copy for FileMode
impl Eq for FileMode
impl StructuralPartialEq for FileMode
Auto Trait Implementations§
impl Freeze for FileMode
impl RefUnwindSafe for FileMode
impl Send for FileMode
impl Sync for FileMode
impl Unpin for FileMode
impl UnwindSafe for FileMode
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)