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

Returns true if the change is a kind of access

Returns true if the change is a kind of open access

Returns true if the change is a kind of close access

Returns true if the change is a kind of creation

Returns true if the change is a kind of modification

Returns true if the change is a kind of data modification

Returns true if the change is a kind of metadata modification

Returns true if the change is a kind of rename

Returns true if the change is a kind of removal

Returns true if the change kind is unknown

Trait Implementations

The resulting type after applying the | operator.

Performs the | operation. Read more

The resulting type after applying the | operator.

Performs the | operation. Read more

The resulting type after applying the | operator.

Performs the | operation. Read more

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

Formats the value using the given formatter. Read more

Converts to this type from the input type.

Converts to this type from the input type.

Creates a value from an iterator. Read more

The associated error which can be returned from parsing.

Parses a string s to return a value of this type. Read more

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

This method returns an Ordering between self and other. Read more

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

Restrict a value to a certain interval. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

Serialize this value into the given Serde serializer. Read more

The type returned in the event of a conversion error.

Performs the conversion.

Names of the variants of this enum

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Converts reference to Any

Converts mutable reference to Any

Consumes and produces Box<dyn Any>

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more