pub struct FileMode {
pub setuid: bool,
pub setgid: bool,
pub owner: Perms,
pub group: Perms,
pub other: Perms,
}Expand description
The file/dir permissions for owner/group/everyone else.
Fields§
§setuid: boolExecutable files with this bit set will run with effective uid set to the uid of the file owner.
setgid: boolExecutable files with this bit set will run with effective gid set to the gid of the file owner.
owner: PermsThe permissions for the owner of the file.
group: PermsThe permissions for everyone who is not the owner, but in the group.
other: PermsThe permissions for everyone who is not the owner and not in the group.
Trait Implementations§
Source§impl Ord for FileMode
impl Ord for FileMode
Source§impl PartialOrd for FileMode
impl PartialOrd for FileMode
impl 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