pub enum DirectoryOperationEvent {
Created {
path: PathBuf,
timestamp: SystemTime,
},
Deleted {
path: PathBuf,
timestamp: SystemTime,
},
}Expand description
Directory operation event types
Represents different types of directory operations that can trigger hooks. Each variant includes relevant metadata for the operation.
§Variants
Created- Directory was createdDeleted- Directory was deleted
Variants§
Created
Directory was created
§Fields
path- Path to the created directorytimestamp- Time when the directory was created
Deleted
Directory was deleted
§Fields
path- Path to the deleted directorytimestamp- Time when the directory was deleted
Trait Implementations§
Source§impl Clone for DirectoryOperationEvent
impl Clone for DirectoryOperationEvent
Source§fn clone(&self) -> DirectoryOperationEvent
fn clone(&self) -> DirectoryOperationEvent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DirectoryOperationEvent
impl Debug for DirectoryOperationEvent
Source§impl<'de> Deserialize<'de> for DirectoryOperationEvent
impl<'de> Deserialize<'de> for DirectoryOperationEvent
Source§fn 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
Auto Trait Implementations§
impl Freeze for DirectoryOperationEvent
impl RefUnwindSafe for DirectoryOperationEvent
impl Send for DirectoryOperationEvent
impl Sync for DirectoryOperationEvent
impl Unpin for DirectoryOperationEvent
impl UnwindSafe for DirectoryOperationEvent
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more