pub struct Mode(pub u32);
Expand description
Mode represents a file’s mode and permission bits. The bits have the same definition on all systems, but not all bits apply to all systems.
It is modelled after Go’s os.FileMode
.
Tuple Fields§
§0: u32
Implementations§
source§impl Mode
impl Mode
sourcepub const NAMED_PIPE: Self = _
pub const NAMED_PIPE: Self = _
p: named pipe (FIFO)
sourcepub const CHAR_DEVICE: Self = _
pub const CHAR_DEVICE: Self = _
c: Unix character device, when DEVICE is set
Trait Implementations§
source§impl BitAndAssign<Mode> for Mode
impl BitAndAssign<Mode> for Mode
source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
Performs the
&=
operation. Read moresource§impl BitOrAssign<Mode> for Mode
impl BitOrAssign<Mode> for Mode
source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
Performs the
|=
operation. Read more