pub struct FileMode(pub u32);Expand description
Unix mode bits for a file (e.g. 0o600).
A distinct newtype from DirMode so the file- and directory-mode
arguments of write_atomic_restricted cannot be transposed: passing
them in the wrong order is a compile error rather than a silent
security regression (a secrets file landing at 0o700, say).
Tuple Fields§
§0: u32Trait Implementations§
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 UnsafeUnpin 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