pub enum PunchEvent {
Show 14 variants
FighterSpawned {
fighter_id: FighterId,
name: String,
},
FighterMessage {
fighter_id: FighterId,
bout_id: Uuid,
role: String,
content_preview: String,
},
GorillaUnleashed {
gorilla_id: GorillaId,
name: String,
},
GorillaPaused {
gorilla_id: GorillaId,
reason: String,
},
ToolExecuted {
agent_id: String,
tool_name: String,
success: bool,
duration_ms: u64,
},
BoutStarted {
bout_id: Uuid,
fighter_id: FighterId,
},
BoutEnded {
bout_id: Uuid,
fighter_id: FighterId,
messages_exchanged: u64,
},
ComboTriggered {
combo_name: String,
triggered_by: String,
},
TroopFormed {
troop_id: TroopId,
name: String,
member_count: usize,
},
TroopDisbanded {
troop_id: TroopId,
name: String,
},
McpServerStarted {
server_name: String,
},
McpServerStopped {
server_name: String,
},
HeartbeatExecuted {
fighter_id: FighterId,
task_description: String,
},
Error {
source: String,
message: String,
},
}Expand description
Events emitted by the Punch system.
Variants§
FighterSpawned
A new Fighter has been spawned.
FighterMessage
A Fighter sent or received a message.
GorillaUnleashed
A Gorilla has been unleashed (activated).
GorillaPaused
A Gorilla has been paused.
ToolExecuted
A tool (move) was executed.
BoutStarted
A bout (session/conversation) has started.
BoutEnded
A bout has ended.
ComboTriggered
A combo (workflow) has been triggered.
TroopFormed
A troop has been formed.
TroopDisbanded
A troop has been disbanded.
McpServerStarted
An MCP server has been started and initialized.
McpServerStopped
An MCP server has been shut down.
HeartbeatExecuted
A heartbeat task was proactively executed by the scheduler.
Error
An error occurred in the system.
Trait Implementations§
Source§impl Clone for PunchEvent
impl Clone for PunchEvent
Source§fn clone(&self) -> PunchEvent
fn clone(&self) -> PunchEvent
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 PunchEvent
impl Debug for PunchEvent
Source§impl<'de> Deserialize<'de> for PunchEvent
impl<'de> Deserialize<'de> for PunchEvent
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 PunchEvent
impl RefUnwindSafe for PunchEvent
impl Send for PunchEvent
impl Sync for PunchEvent
impl Unpin for PunchEvent
impl UnsafeUnpin for PunchEvent
impl UnwindSafe for PunchEvent
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