Struct mtree::FileMode [−][src]
pub struct FileMode {
pub setuid: bool,
pub setgid: bool,
pub owner: Perms,
pub group: Perms,
pub other: Perms,
}The file/dir permissions for owner/group/everyone else.
Fields
setuid: bool
Executable files with this bit set will run with effective uid set to the uid of the file owner.
setgid: bool
Executable files with this bit set will run with effective gid set to the gid of the file owner.
owner: Perms
The permissions for the owner of the file.
group: Perms
The permissions for everyone who is not the owner, but in the group.
other: Perms
The permissions for everyone who is not the owner and not in the group.
Trait Implementations
impl Debug for FileMode[src]
impl Debug for FileModefn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Copy for FileMode[src]
impl Copy for FileModeimpl Clone for FileMode[src]
impl Clone for FileModefn clone(&self) -> FileMode[src]
fn clone(&self) -> FileModeReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl Eq for FileMode[src]
impl Eq for FileModeimpl PartialEq for FileMode[src]
impl PartialEq for FileModefn eq(&self, other: &FileMode) -> bool[src]
fn eq(&self, other: &FileMode) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &FileMode) -> bool[src]
fn ne(&self, other: &FileMode) -> boolThis method tests for !=.
impl Ord for FileMode[src]
impl Ord for FileModefn cmp(&self, other: &FileMode) -> Ordering[src]
fn cmp(&self, other: &FileMode) -> OrderingThis method returns an Ordering between self and other. Read more
fn max(self, other: Self) -> Self1.21.0[src]
fn max(self, other: Self) -> SelfCompares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self1.21.0[src]
fn min(self, other: Self) -> SelfCompares and returns the minimum of two values. Read more
impl PartialOrd for FileMode[src]
impl PartialOrd for FileModefn partial_cmp(&self, other: &FileMode) -> Option<Ordering>[src]
fn partial_cmp(&self, other: &FileMode) -> Option<Ordering>This method returns an ordering between self and other values if one exists. Read more
fn lt(&self, other: &FileMode) -> bool[src]
fn lt(&self, other: &FileMode) -> boolThis method tests less than (for self and other) and is used by the < operator. Read more
fn le(&self, other: &FileMode) -> bool[src]
fn le(&self, other: &FileMode) -> boolThis method tests less than or equal to (for self and other) and is used by the <= operator. Read more
fn gt(&self, other: &FileMode) -> bool[src]
fn gt(&self, other: &FileMode) -> boolThis method tests greater than (for self and other) and is used by the > operator. Read more
fn ge(&self, other: &FileMode) -> bool[src]
fn ge(&self, other: &FileMode) -> boolThis method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
impl Hash for FileMode[src]
impl Hash for FileModefn hash<__H: Hasher>(&self, state: &mut __H)[src]
fn hash<__H: Hasher>(&self, state: &mut __H)Feeds this value into the given [Hasher]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, Feeds a slice of this type into the given [Hasher]. Read more
impl Display for FileMode[src]
impl Display for FileModefn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Octal for FileMode[src]
impl Octal for FileMode