pub struct ConfigChangeEvent {
pub key: String,
pub old_value: OptionValue,
pub new_value: OptionValue,
}Expand description
Emitted when a global option value changes via set_global_option.
Subscribers can listen for these events via ConfigManager::subscribe_changes().
Fields§
§key: StringThe option name that was changed (e.g., “split”, “dir”).
old_value: OptionValueThe previous value before the change.
new_value: OptionValueThe new value after the change.
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 (const: unstable) · 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 UnsafeUnpin 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