pub enum AccessKind {
Read,
Probe,
List,
Write,
Exec,
Xattr,
}Expand description
One way a command touched a path.
A path touched in several ways has every one of them recorded, combined in
AccessKinds.
Variants§
Read
The path’s content was read.
Probe
The path’s existence or metadata was checked, including a lookup that found
nothing (ENOENT).
List
The entries of a directory were read.
Write
The path was created, modified, renamed, removed, or had its metadata changed.
Exec
The path was run as a program.
Xattr
The path’s extended attributes were read or listed, including a read that
found no such attribute (ENODATA), a buffer too small for the answer
(ERANGE), or a file system without attributes (EOPNOTSUPP).
Implementations§
Source§impl AccessKind
impl AccessKind
Trait Implementations§
Source§impl BitOr<AccessKind> for AccessKinds
impl BitOr<AccessKind> for AccessKinds
Source§type Output = AccessKinds
type Output = AccessKinds
The resulting type after applying the
| operator.Source§fn bitor(self, kind: AccessKind) -> Self
fn bitor(self, kind: AccessKind) -> Self
Performs the
| operation. Read moreSource§impl BitOrAssign<AccessKind> for AccessKinds
impl BitOrAssign<AccessKind> for AccessKinds
Source§fn bitor_assign(&mut self, kind: AccessKind)
fn bitor_assign(&mut self, kind: AccessKind)
Performs the
|= operation. Read moreSource§impl Clone for AccessKind
impl Clone for AccessKind
impl Copy for AccessKind
Source§impl Debug for AccessKind
impl Debug for AccessKind
Source§impl Display for AccessKind
impl Display for AccessKind
impl Eq for AccessKind
Source§impl From<AccessKind> for AccessKinds
impl From<AccessKind> for AccessKinds
Source§fn from(kind: AccessKind) -> Self
fn from(kind: AccessKind) -> Self
Converts to this type from the input type.
Source§impl FromIterator<AccessKind> for AccessKinds
impl FromIterator<AccessKind> for AccessKinds
Source§fn from_iter<I: IntoIterator<Item = AccessKind>>(kinds: I) -> Self
fn from_iter<I: IntoIterator<Item = AccessKind>>(kinds: I) -> Self
Creates a value from an iterator. Read more
Source§impl Hash for AccessKind
impl Hash for AccessKind
Source§impl Ord for AccessKind
impl Ord for AccessKind
1.21.0 (const: unstable) · 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for AccessKind
impl PartialEq for AccessKind
Source§impl PartialOrd for AccessKind
impl PartialOrd for AccessKind
impl StructuralPartialEq for AccessKind
Auto Trait Implementations§
impl Freeze for AccessKind
impl RefUnwindSafe for AccessKind
impl Send for AccessKind
impl Sync for AccessKind
impl Unpin for AccessKind
impl UnsafeUnpin for AccessKind
impl UnwindSafe for AccessKind
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