Enum AccessKind

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

Trait Implementations

impl Clone for AccessKind

fn clone(&self) -> AccessKind

impl Copy for AccessKind

impl Debug for AccessKind

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

impl Eq for AccessKind

impl Hash for AccessKind

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

impl PartialEq for AccessKind

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

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

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

fn type_id(&self) -> TypeId

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

fn borrow(&self) -> &T

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

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

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

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

impl<T> From<T> for AccessKind

fn from(t: T) -> T

Returns the argument unchanged.

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

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

impl<T, U> Into<U> for AccessKind 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 AccessKind where U: Into<T>,

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

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

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