Enum ModifyKind

pub enum ModifyKind

An event describing mutation of content, name, or metadata.

Variants

Any

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

Data(DataChange)

An event emitted when the data content of a file is changed.

Metadata(MetadataKind)

An event emitted when the metadata of a file or folder is changed.

Name(RenameMode)

An event emitted when the name of a file or folder is changed.

Other

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

Trait Implementations

impl Clone for ModifyKind

fn clone(&self) -> ModifyKind

impl Copy for ModifyKind

impl Debug for ModifyKind

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

impl Eq for ModifyKind

impl Hash for ModifyKind

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

impl PartialEq for ModifyKind

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

impl StructuralPartialEq for ModifyKind

Auto Trait Implementations

impl Freeze for ModifyKind

impl RefUnwindSafe for ModifyKind

impl Send for ModifyKind

impl Sync for ModifyKind

impl Unpin for ModifyKind

impl UnsafeUnpin for ModifyKind

impl UnwindSafe for ModifyKind

Blanket Implementations

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

fn type_id(&self) -> TypeId

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

fn borrow(&self) -> &T

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

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

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

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

impl<T> From<T> for ModifyKind

fn from(t: T) -> T

Returns the argument unchanged.

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

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

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

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

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

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