Enum AccessMode

enum AccessMode

An event describing open or close operations on files.

Variants

Any

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

Execute

An event emitted when the file is executed, or the folder opened.

Read

An event emitted when the file is opened for reading.

Write

An event emitted when the file is opened for writing.

Other

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

Implementations

impl Clone for AccessMode

fn clone(self: &Self) -> AccessMode

impl Copy for AccessMode

impl Debug for AccessMode

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

impl Eq for AccessMode

impl Freeze for AccessMode

impl Hash for AccessMode

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

impl PartialEq for AccessMode

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

impl RefUnwindSafe for AccessMode

impl Send for AccessMode

impl StructuralPartialEq for AccessMode

impl Sync for AccessMode

impl Unpin for AccessMode

impl UnsafeUnpin for AccessMode

impl UnwindSafe for AccessMode

impl<T> Any for AccessMode

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for AccessMode

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

impl<T> BorrowMut for AccessMode

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

impl<T> CloneToUninit for AccessMode

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

impl<T> From for AccessMode

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> ToOwned for AccessMode

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

impl<T, U> Into for AccessMode

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 AccessMode

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

impl<T, U> TryInto for AccessMode

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