#[non_exhaustive]pub enum ConfigChange {
Set {
key: String,
},
Removed {
key: String,
},
Reloaded,
}Expand description
A typed configuration change emitted by a ConfigWatch source.
Carries only the affected key (never the value), so change notifications are safe to log. Consumers react by re-running the load pipeline and re-decoding.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Set
The value at key was created or replaced.
Removed
The value at key was removed.
Reloaded
The backend changed wholesale; consumers should reload everything.
Trait Implementations§
Source§impl Clone for ConfigChange
impl Clone for ConfigChange
Source§fn clone(&self) -> ConfigChange
fn clone(&self) -> ConfigChange
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ConfigChange
impl Debug for ConfigChange
impl Eq for ConfigChange
Source§impl PartialEq for ConfigChange
impl PartialEq for ConfigChange
impl StructuralPartialEq for ConfigChange
Auto Trait Implementations§
impl Freeze for ConfigChange
impl RefUnwindSafe for ConfigChange
impl Send for ConfigChange
impl Sync for ConfigChange
impl Unpin for ConfigChange
impl UnsafeUnpin for ConfigChange
impl UnwindSafe for ConfigChange
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