Struct nc::types::open_how_t
source · #[repr(C)]pub struct open_how_t {
pub flags: u64,
pub mode: u64,
pub resolve: u64,
}
Expand description
Arguments for how openat2(2) should open the target path. If only flags and mode are non-zero, then openat2(2) operates very similarly to openat(2).
However, unlike openat(2), unknown or invalid bits in flags result in
-EINVAL
rather than being silently ignored. mode must be zero unless one of
{O_CREAT, O_TMPFILE}
are set.
Fields§
§flags: u64
O_*
flags
mode: u64
O_CREAT/O_TMPFILE
file mode
resolve: u64
RESOLVE_*
flags.
Trait Implementations§
source§impl Clone for open_how_t
impl Clone for open_how_t
source§fn clone(&self) -> open_how_t
fn clone(&self) -> open_how_t
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for open_how_t
impl Debug for open_how_t
source§impl Default for open_how_t
impl Default for open_how_t
source§fn default() -> open_how_t
fn default() -> open_how_t
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for open_how_t
impl RefUnwindSafe for open_how_t
impl Send for open_how_t
impl Sync for open_how_t
impl Unpin for open_how_t
impl UnwindSafe for open_how_t
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