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 for Mode
impl BitAndAssign for Mode
source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
Performs the
&=
operation. Read moresource§impl BitOrAssign for Mode
impl BitOrAssign for Mode
source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
Performs the
|=
operation. Read moreimpl Copy for Mode
impl Eq for Mode
impl StructuralPartialEq for Mode
Auto Trait Implementations§
impl Freeze for Mode
impl RefUnwindSafe for Mode
impl Send for Mode
impl Sync for Mode
impl Unpin for Mode
impl UnwindSafe for Mode
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§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
)