Enum MetadataKind
pub enum MetadataKind
An event emitted when the metadata of a file or folder is changed.
Variants
-
Any The catch-all case, to be used when the specific kind of event is unknown.
-
AccessTime An event emitted when the access time of the file or folder is changed.
-
WriteTime An event emitted when the write or modify time of the file or folder is changed.
-
Permissions An event emitted when the permissions of the file or folder are changed.
-
Ownership An event emitted when the ownership of the file or folder is changed.
-
Extended An event emitted when an extended attribute of the file or folder is changed.
If the extended attribute's name or type is known, it should be provided in the
Infoevent attribute.-
Other An event which specific kind is known but cannot be represented otherwise.
Trait Implementations
impl Clone for MetadataKind
fn clone(&self) -> MetadataKind
impl Copy for MetadataKind
impl Debug for MetadataKind
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Eq for MetadataKind
impl Hash for MetadataKind
fn hash<__H: Hasher>(&self, state: &mut __H)
impl PartialEq for MetadataKind
fn eq(&self, other: &MetadataKind) -> bool
impl StructuralPartialEq for MetadataKind
Auto Trait Implementations
impl Freeze for MetadataKind
impl RefUnwindSafe for MetadataKind
impl Send for MetadataKind
impl Sync for MetadataKind
impl Unpin for MetadataKind
impl UnsafeUnpin for MetadataKind
impl UnwindSafe for MetadataKind
Blanket Implementations
impl<T> Any for MetadataKind
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for MetadataKind
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for MetadataKind
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for MetadataKind
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for MetadataKind
fn from(t: T) -> TReturns the argument unchanged.
impl<T> ToOwned for MetadataKind
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T, U> Into<U> for MetadataKind
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for MetadataKind
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for MetadataKind
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>