pub enum PathEvent {
    Create {
        path: PathBuf,
        metadata: Metadata,
    },
    Update {
        path: PathBuf,
        metadata: Metadata,
    },
    Delete {
        path: PathBuf,
    },
}
Expand description

An walker-relevant event for changes in a directory. It packs newer std::fs::Metadata if there is.

Variants

Create

Fields

path: PathBuf

The created path

metadata: Metadata

The new metadata

Emitted when a new path is created with metadata.

Update

Fields

path: PathBuf

Updated path

metadata: Metadata

New metadata

Emitted after a new write to path.

Delete

Fields

path: PathBuf

Deleted path

Emitted when PathBuf is deleted.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
Should always be Self
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.