pub struct OpenHow(/* private fields */);
Expand description
Specifies how openat2 should open a pathname.
See https://man7.org/linux/man-pages/man2/open_how.2type.html
Implementations§
source§impl OpenHow
impl OpenHow
sourcepub fn flags(self, flags: OFlag) -> Self
pub fn flags(self, flags: OFlag) -> Self
Set the open flags used to open a file, completely overwriting any existing flags.
sourcepub fn mode(self, mode: Mode) -> Self
pub fn mode(self, mode: Mode) -> Self
Set the file mode new files will be created with, overwriting any existing flags.
sourcepub fn resolve(self, resolve: ResolveFlag) -> Self
pub fn resolve(self, resolve: ResolveFlag) -> Self
Set resolve flags, completely overwriting any existing flags.
See ResolveFlag for more detail.
Trait Implementations§
impl Copy for OpenHow
Auto Trait Implementations§
impl Freeze for OpenHow
impl RefUnwindSafe for OpenHow
impl Send for OpenHow
impl Sync for OpenHow
impl Unpin for OpenHow
impl UnwindSafe for OpenHow
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
)