Struct linux_stat::StatAtFlags
source · #[repr(transparent)]pub struct StatAtFlags(_);
Expand description
Flags for fstatat()
.
Implementations§
source§impl StatAtFlags
impl StatAtFlags
sourcepub const EMPTY_PATH: Self = _
pub const EMPTY_PATH: Self = _
If pathname is an empty string, operate on the file referred to by dirfd (which may have been obtained using the open(2) O_PATH flag). In this case, dirfd can refer to any type of file, not just a directory, and the behavior of fstatat() is similar to that of fstat(). If dirfd is AT_FDCWD, the call operates on the current working directory.
sourcepub const NO_AUTOMOUNT: Self = _
pub const NO_AUTOMOUNT: Self = _
Don’t automount the terminal (“basename”) component of pathname. Since Linux 3.1 this flag is ignored. Since Linux 4.11 this flag is implied.
sourcepub const SYMLINK_NOFOLLOW: Self = _
pub const SYMLINK_NOFOLLOW: Self = _
If pathname is a symbolic link, do not dereference it: instead return information about the link itself, like lstat(). (By default, fstatat() dereferences symbolic links, like stat().)
pub const fn empty() -> Self
pub const fn all() -> Self
pub const fn from_bits(bits: u32) -> Self
pub const fn bits(&self) -> u32
pub const fn contains(&self, other: Self) -> bool
pub fn remove(&mut self, other: Self)
pub fn insert(&mut self, other: Self)
pub fn toggle(&mut self, other: Self)
Methods from Deref<Target = u32>§
pub const MIN: u32 = 0u32
pub const MAX: u32 = 4_294_967_295u32
pub const BITS: u32 = 32u32
Trait Implementations§
source§impl AsRef<u32> for StatAtFlags
impl AsRef<u32> for StatAtFlags
source§impl BitAnd<StatAtFlags> for StatAtFlags
impl BitAnd<StatAtFlags> for StatAtFlags
source§impl BitAnd<u32> for StatAtFlags
impl BitAnd<u32> for StatAtFlags
source§impl BitAndAssign<StatAtFlags> for StatAtFlags
impl BitAndAssign<StatAtFlags> for StatAtFlags
source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
Performs the
&=
operation. Read moresource§impl BitAndAssign<u32> for StatAtFlags
impl BitAndAssign<u32> for StatAtFlags
source§fn bitand_assign(&mut self, rhs: u32)
fn bitand_assign(&mut self, rhs: u32)
Performs the
&=
operation. Read moresource§impl BitOr<StatAtFlags> for StatAtFlags
impl BitOr<StatAtFlags> for StatAtFlags
source§impl BitOr<u32> for StatAtFlags
impl BitOr<u32> for StatAtFlags
source§impl BitOrAssign<StatAtFlags> for StatAtFlags
impl BitOrAssign<StatAtFlags> for StatAtFlags
source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
Performs the
|=
operation. Read moresource§impl BitOrAssign<u32> for StatAtFlags
impl BitOrAssign<u32> for StatAtFlags
source§fn bitor_assign(&mut self, rhs: u32)
fn bitor_assign(&mut self, rhs: u32)
Performs the
|=
operation. Read moresource§impl Borrow<u32> for StatAtFlags
impl Borrow<u32> for StatAtFlags
source§impl Clone for StatAtFlags
impl Clone for StatAtFlags
source§fn clone(&self) -> StatAtFlags
fn clone(&self) -> StatAtFlags
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 StatAtFlags
impl Debug for StatAtFlags
source§impl Deref for StatAtFlags
impl Deref for StatAtFlags
source§impl From<StatAtFlags> for u32
impl From<StatAtFlags> for u32
source§fn from(value: StatAtFlags) -> Self
fn from(value: StatAtFlags) -> Self
Converts to this type from the input type.
source§impl From<u32> for StatAtFlags
impl From<u32> for StatAtFlags
source§impl Hash for StatAtFlags
impl Hash for StatAtFlags
source§impl Ord for StatAtFlags
impl Ord for StatAtFlags
source§fn cmp(&self, other: &StatAtFlags) -> Ordering
fn cmp(&self, other: &StatAtFlags) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<StatAtFlags> for StatAtFlags
impl PartialEq<StatAtFlags> for StatAtFlags
source§fn eq(&self, other: &StatAtFlags) -> bool
fn eq(&self, other: &StatAtFlags) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<StatAtFlags> for StatAtFlags
impl PartialOrd<StatAtFlags> for StatAtFlags
source§fn partial_cmp(&self, other: &StatAtFlags) -> Option<Ordering>
fn partial_cmp(&self, other: &StatAtFlags) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for StatAtFlags
impl Eq for StatAtFlags
impl StructuralEq for StatAtFlags
impl StructuralPartialEq for StatAtFlags
Auto Trait Implementations§
impl RefUnwindSafe for StatAtFlags
impl Send for StatAtFlags
impl Sync for StatAtFlags
impl Unpin for StatAtFlags
impl UnwindSafe for StatAtFlags
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