pub enum ConfigChange {
ModelChanged {
old_model: String,
new_model: String,
},
ApiKeyChanged,
RateLimitChanged {
old: u32,
new: u32,
},
ListenAddressChanged {
old: String,
new: String,
},
ChannelAdded(String),
ChannelRemoved(String),
McpServerAdded(String),
McpServerRemoved(String),
MemoryConfigChanged,
}Expand description
A single configuration change detected during a reload.
Variants§
ModelChanged
The default model was swapped — switching fighting stance.
ApiKeyChanged
API key was rotated — new credentials for the fight.
RateLimitChanged
Rate limit was adjusted — changing the pace of the bout.
ListenAddressChanged
Listen address was changed — moving to a different ring.
ChannelAdded(String)
A new channel entered the arena.
ChannelRemoved(String)
A channel was pulled from the fight card.
McpServerAdded(String)
A new MCP server joined the corner team.
McpServerRemoved(String)
An MCP server was cut from the roster.
MemoryConfigChanged
Memory configuration was adjusted — changing the fighter’s recall strategy.
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 · 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
Source§impl<'de> Deserialize<'de> for ConfigChange
impl<'de> Deserialize<'de> for ConfigChange
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
Source§impl PartialEq for ConfigChange
impl PartialEq for ConfigChange
Source§impl Serialize for ConfigChange
impl Serialize for ConfigChange
impl Eq 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.