Enum distant_core::data::ChangeKind
source · [−]pub enum ChangeKind {
Show 24 variants
Access,
AccessCloseExecute,
AccessCloseRead,
AccessCloseWrite,
AccessOpenExecute,
AccessOpenRead,
AccessOpenWrite,
AccessRead,
AccessTime,
Create,
Content,
Data,
Metadata,
Modify,
Remove,
Rename,
RenameBoth,
RenameFrom,
RenameTo,
Size,
Ownership,
Permissions,
WriteTime,
Unknown,
}Variants
Access
Something about a file or directory was accessed, but no specific details were known
AccessCloseExecute
A file was closed for executing
AccessCloseRead
A file was closed for reading
AccessCloseWrite
A file was closed for writing
AccessOpenExecute
A file was opened for executing
AccessOpenRead
A file was opened for reading
AccessOpenWrite
A file was opened for writing
AccessRead
A file or directory was read
AccessTime
The access time of a file or directory was changed
Create
A file, directory, or something else was created
Content
The content of a file or directory changed
Data
The data of a file or directory was modified, but no specific details were known
Metadata
The metadata of a file or directory was modified, but no specific details were known
Modify
Something about a file or directory was modified, but no specific details were known
Remove
A file, directory, or something else was removed
Rename
A file or directory was renamed, but no specific details were known
RenameBoth
A file or directory was renamed, and the provided paths are the source and target in that order (from, to)
RenameFrom
A file or directory was renamed, and the provided path is the origin of the rename (before being renamed)
RenameTo
A file or directory was renamed, and the provided path is the result of the rename
Size
A file’s size changed
Ownership
The ownership of a file or directory was changed
Permissions
The permissions of a file or directory was changed
WriteTime
The write or modify time of a file or directory was changed
Unknown
Implementations
sourceimpl ChangeKind
impl ChangeKind
sourcepub fn is_access_kind(&self) -> bool
pub fn is_access_kind(&self) -> bool
Returns true if the change is a kind of access
sourcepub fn is_open_access_kind(&self) -> bool
pub fn is_open_access_kind(&self) -> bool
Returns true if the change is a kind of open access
sourcepub fn is_close_access_kind(&self) -> bool
pub fn is_close_access_kind(&self) -> bool
Returns true if the change is a kind of close access
sourcepub fn is_create_kind(&self) -> bool
pub fn is_create_kind(&self) -> bool
Returns true if the change is a kind of creation
sourcepub fn is_modify_kind(&self) -> bool
pub fn is_modify_kind(&self) -> bool
Returns true if the change is a kind of modification
sourcepub fn is_data_modify_kind(&self) -> bool
pub fn is_data_modify_kind(&self) -> bool
Returns true if the change is a kind of data modification
sourcepub fn is_metadata_modify_kind(&self) -> bool
pub fn is_metadata_modify_kind(&self) -> bool
Returns true if the change is a kind of metadata modification
sourcepub fn is_rename_kind(&self) -> bool
pub fn is_rename_kind(&self) -> bool
Returns true if the change is a kind of rename
sourcepub fn is_remove_kind(&self) -> bool
pub fn is_remove_kind(&self) -> bool
Returns true if the change is a kind of removal
sourcepub fn is_unknown_kind(&self) -> bool
pub fn is_unknown_kind(&self) -> bool
Returns true if the change kind is unknown
Trait Implementations
sourceimpl BitOr<ChangeKind> for ChangeKind
impl BitOr<ChangeKind> for ChangeKind
sourceimpl BitOr<ChangeKind> for ChangeKindSet
impl BitOr<ChangeKind> for ChangeKindSet
type Output = ChangeKindSet
type Output = ChangeKindSet
The resulting type after applying the | operator.
sourcefn bitor(self, rhs: ChangeKind) -> Self::Output
fn bitor(self, rhs: ChangeKind) -> Self::Output
Performs the | operation. Read more
sourceimpl BitOr<ChangeKindSet> for ChangeKind
impl BitOr<ChangeKindSet> for ChangeKind
type Output = ChangeKindSet
type Output = ChangeKindSet
The resulting type after applying the | operator.
sourcefn bitor(self, rhs: ChangeKindSet) -> Self::Output
fn bitor(self, rhs: ChangeKindSet) -> Self::Output
Performs the | operation. Read more
sourceimpl Clone for ChangeKind
impl Clone for ChangeKind
sourcefn clone(&self) -> ChangeKind
fn clone(&self) -> ChangeKind
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for ChangeKind
impl Debug for ChangeKind
sourceimpl<'de> Deserialize<'de> for ChangeKind
impl<'de> Deserialize<'de> for ChangeKind
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Display for ChangeKind
impl Display for ChangeKind
sourceimpl From<ChangeKind> for ChangeKindSet
impl From<ChangeKind> for ChangeKindSet
sourcefn from(change_kind: ChangeKind) -> Self
fn from(change_kind: ChangeKind) -> Self
Converts to this type from the input type.
sourceimpl From<EventKind> for ChangeKind
impl From<EventKind> for ChangeKind
sourcefn from(x: NotifyEventKind) -> Self
fn from(x: NotifyEventKind) -> Self
Converts to this type from the input type.
sourceimpl FromIterator<ChangeKind> for ChangeKindSet
impl FromIterator<ChangeKind> for ChangeKindSet
sourcefn from_iter<I: IntoIterator<Item = ChangeKind>>(iter: I) -> Self
fn from_iter<I: IntoIterator<Item = ChangeKind>>(iter: I) -> Self
Creates a value from an iterator. Read more
sourceimpl FromStr for ChangeKind
impl FromStr for ChangeKind
type Err = ParseError
type Err = ParseError
The associated error which can be returned from parsing.
sourceimpl Hash for ChangeKind
impl Hash for ChangeKind
sourceimpl Ord for ChangeKind
impl Ord for ChangeKind
sourcefn cmp(&self, other: &ChangeKind) -> Ordering
fn cmp(&self, other: &ChangeKind) -> Ordering
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Self where
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Self where
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<ChangeKind> for ChangeKind
impl PartialEq<ChangeKind> for ChangeKind
sourcefn eq(&self, other: &ChangeKind) -> bool
fn eq(&self, other: &ChangeKind) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourceimpl PartialOrd<ChangeKind> for ChangeKind
impl PartialOrd<ChangeKind> for ChangeKind
sourcefn partial_cmp(&self, other: &ChangeKind) -> Option<Ordering>
fn partial_cmp(&self, other: &ChangeKind) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
sourceimpl Serialize for ChangeKind
impl Serialize for ChangeKind
sourceimpl TryFrom<&str> for ChangeKind
impl TryFrom<&str> for ChangeKind
type Error = ParseError
type Error = ParseError
The type returned in the event of a conversion error.
sourceimpl VariantNames for ChangeKind
impl VariantNames for ChangeKind
impl Copy for ChangeKind
impl Eq for ChangeKind
impl StructuralEq for ChangeKind
impl StructuralPartialEq for ChangeKind
Auto Trait Implementations
impl RefUnwindSafe for ChangeKind
impl Send for ChangeKind
impl Sync for ChangeKind
impl Unpin for ChangeKind
impl UnwindSafe for ChangeKind
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more