pub struct DirFlags { /* private fields */ }Expand description
‘Dir::new()’ creates a new DirFlags object with default (O_CLOEXEC) flags. One can then freely add/remove flags to the set. The final open calls will add O_DIRECTORY and O_PATH as applicable/supported but not verify or remove any defined flags. This allows passing flags the ‘openat’ implementation is not even aware about. Thus the open call may fail with some error when one constructed an invalid flag set.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DirFlags
impl RefUnwindSafe for DirFlags
impl Send for DirFlags
impl Sync for DirFlags
impl Unpin for DirFlags
impl UnwindSafe for DirFlags
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