Struct OpenHow
#[repr(transparent)]
pub struct OpenHow(/* private field */);
Specifies how [openat2()] should open a pathname.
Reference
Implementations
impl OpenHow
fn new() -> SelfCreate a new zero-filled
open_how.fn flags(self, flags: OFlag) -> SelfSet the open flags used to open a file, completely overwriting any existing flags.
fn mode(self, mode: Mode) -> SelfSet the file mode new files will be created with, overwriting any existing flags.
fn resolve(self, resolve: ResolveFlag) -> SelfSet resolve flags, completely overwriting any existing flags.
See [ResolveFlag] for more detail.
Trait Implementations
impl Clone for OpenHow
fn clone(&self) -> Self
impl Copy for OpenHow
impl Debug for OpenHow
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Default for OpenHow
fn default() -> Self
Auto Trait Implementations
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
Blanket Implementations
impl<T> Any for OpenHow
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for OpenHow
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for OpenHow
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for OpenHow
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for OpenHow
fn from(t: T) -> TReturns the argument unchanged.
impl<T> ToOwned for OpenHow
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T, U> Into<U> for OpenHow
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for OpenHow
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for OpenHow
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>