Struct OpenHow

struct OpenHow(_)

Specifies how [openat2()] should open a pathname.

Reference

Implementations

impl OpenHow

fn new() -> Self

Create a new zero-filled open_how.

fn flags(self: Self, flags: OFlag) -> Self

Set the open flags used to open a file, completely overwriting any existing flags.

fn mode(self: Self, mode: Mode) -> Self

Set the file mode new files will be created with, overwriting any existing flags.

fn resolve(self: Self, resolve: ResolveFlag) -> Self

Set resolve flags, completely overwriting any existing flags.

See [ResolveFlag] for more detail.

impl Clone for OpenHow

fn clone(self: &Self) -> OpenHow

impl Copy for OpenHow

impl Debug for OpenHow

fn fmt(self: &Self, f: &mut Formatter<'_>) -> Result

impl Default for OpenHow

fn default() -> Self

impl Freeze for OpenHow

impl RefUnwindSafe for OpenHow

impl Send for OpenHow

impl Sync for OpenHow

impl Unpin for OpenHow

impl UnsafeUnpin for OpenHow

impl UnwindSafe for OpenHow

impl<T> Any for OpenHow

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for OpenHow

fn borrow(self: &Self) -> &T

impl<T> BorrowMut for OpenHow

fn borrow_mut(self: &mut Self) -> &mut T

impl<T> CloneToUninit for OpenHow

unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)

impl<T> From for OpenHow

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> ToOwned for OpenHow

fn to_owned(self: &Self) -> T
fn clone_into(self: &Self, target: &mut T)

impl<T, U> Into for OpenHow

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom for OpenHow

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto for OpenHow

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>