pub enum ConfigChangeEvent {
Reloaded {
path: PathBuf,
timestamp: SystemTime,
},
ReloadFailed {
path: PathBuf,
error: String,
timestamp: SystemTime,
},
FileModified {
path: PathBuf,
timestamp: SystemTime,
},
FileDeleted {
path: PathBuf,
timestamp: SystemTime,
},
}
Expand description
Configuration change event types
Variants§
Reloaded
Configuration successfully reloaded
Fields
§
timestamp: SystemTime
Timestamp when the reload completed
ReloadFailed
Configuration reload failed
Fields
§
timestamp: SystemTime
Timestamp when the error occurred
FileModified
Configuration file was modified
Fields
§
timestamp: SystemTime
Timestamp when the modification was detected
FileDeleted
Configuration file was deleted
Fields
§
timestamp: SystemTime
Timestamp when the deletion was detected
Trait Implementations§
Source§impl Clone for ConfigChangeEvent
impl Clone for ConfigChangeEvent
Source§fn clone(&self) -> ConfigChangeEvent
fn clone(&self) -> ConfigChangeEvent
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 moreAuto Trait Implementations§
impl Freeze for ConfigChangeEvent
impl RefUnwindSafe for ConfigChangeEvent
impl Send for ConfigChangeEvent
impl Sync for ConfigChangeEvent
impl Unpin for ConfigChangeEvent
impl UnwindSafe for ConfigChangeEvent
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