pub enum ConfigEvent {
Updated {
update: ConfigUpdate,
timestamp: SystemTime,
},
BatchUpdated {
count: usize,
timestamp: SystemTime,
},
UpdateFailed {
update: ConfigUpdate,
error: String,
},
RolledBack {
update: ConfigUpdate,
reason: String,
},
Reset {
timestamp: SystemTime,
},
}Expand description
Event emitted when configuration changes.
Variants§
Updated
Configuration update applied successfully.
BatchUpdated
Batch update applied successfully.
UpdateFailed
Update failed.
RolledBack
Update was rolled back.
Reset
Configuration was reset to defaults.
Fields
§
timestamp: SystemTimeTrait Implementations§
Source§impl Clone for ConfigEvent
impl Clone for ConfigEvent
Source§fn clone(&self) -> ConfigEvent
fn clone(&self) -> ConfigEvent
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 ConfigEvent
impl Debug for ConfigEvent
Source§impl<'de> Deserialize<'de> for ConfigEvent
impl<'de> Deserialize<'de> for ConfigEvent
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 ConfigEvent
impl RefUnwindSafe for ConfigEvent
impl Send for ConfigEvent
impl Sync for ConfigEvent
impl Unpin for ConfigEvent
impl UnsafeUnpin for ConfigEvent
impl UnwindSafe for ConfigEvent
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