Enum AccessKind

enum AccessKind

An event describing non-mutating access operations on files.

Variants

Any

The catch-all case, to be used when the specific kind of event is unknown.

Read

An event emitted when the file is read.

Open(AccessMode)

An event emitted when the file, or a handle to the file, is opened.

Close(AccessMode)

An event emitted when the file, or a handle to the file, is closed.

Other

An event which specific kind is known but cannot be represented otherwise.

Implementations

impl Clone for AccessKind

fn clone(self: &Self) -> AccessKind

impl Copy for AccessKind

impl Debug for AccessKind

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

impl Eq for AccessKind

impl Freeze for AccessKind

impl Hash for AccessKind

fn hash<__H: $crate::hash::Hasher>(self: &Self, state: &mut __H)

impl PartialEq for AccessKind

fn eq(self: &Self, other: &AccessKind) -> bool

impl RefUnwindSafe for AccessKind

impl Send for AccessKind

impl StructuralPartialEq for AccessKind

impl Sync for AccessKind

impl Unpin for AccessKind

impl UnsafeUnpin for AccessKind

impl UnwindSafe for AccessKind

impl<T> Any for AccessKind

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for AccessKind

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

impl<T> BorrowMut for AccessKind

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

impl<T> CloneToUninit for AccessKind

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

impl<T> From for AccessKind

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> ToOwned for AccessKind

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

impl<T, U> Into for AccessKind

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 AccessKind

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

impl<T, U> TryInto for AccessKind

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