Enum AccessMode

pub 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.

Trait Implementations

impl Clone for AccessMode

fn clone(&self) -> AccessMode

impl Copy for AccessMode

impl Debug for AccessMode

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

impl Eq for AccessMode

impl Hash for AccessMode

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

impl PartialEq for AccessMode

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

impl StructuralPartialEq for AccessMode

Auto Trait Implementations

impl Freeze for AccessMode

impl RefUnwindSafe for AccessMode

impl Send for AccessMode

impl Sync for AccessMode

impl Unpin for AccessMode

impl UnsafeUnpin for AccessMode

impl UnwindSafe for AccessMode

Blanket Implementations

impl<T> Any for AccessMode where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for AccessMode where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for AccessMode where T: ?Sized,

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

impl<T> CloneToUninit for AccessMode where T: Clone,

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

impl<T> From<T> for AccessMode

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> ToOwned for AccessMode where T: Clone,

type Owned = T;
fn to_owned(&self) -> T
fn clone_into(&self, target: &mut T)

impl<T, U> Into<U> for AccessMode where U: From<T>,

fn into(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<U> for AccessMode where U: Into<T>,

type Error = never;
fn try_from(value: U) -> Result<T, never>

impl<T, U> TryInto<U> for AccessMode where U: TryFrom<T>,

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