Skip to main content

TeamEvent

Struct TeamEvent 

Source
pub struct TeamEvent {
Show 21 fields pub event: String, pub role: Option<String>, pub task: Option<String>, pub recipient: Option<String>, pub from: Option<String>, pub to: Option<String>, pub restart: Option<bool>, pub restart_count: Option<u32>, pub load: Option<f64>, pub working_members: Option<u32>, pub total_members: Option<u32>, pub session_running: Option<bool>, pub reason: Option<String>, pub step: Option<String>, pub error: Option<String>, pub uptime_secs: Option<u64>, pub session_size_bytes: Option<u64>, pub output_bytes: Option<u64>, pub filename: Option<String>, pub content_hash: Option<String>, pub ts: u64,
}

Fields§

§event: String§role: Option<String>§task: Option<String>§recipient: Option<String>§from: Option<String>§to: Option<String>§restart: Option<bool>§restart_count: Option<u32>§load: Option<f64>§working_members: Option<u32>§total_members: Option<u32>§session_running: Option<bool>§reason: Option<String>§step: Option<String>§error: Option<String>§uptime_secs: Option<u64>§session_size_bytes: Option<u64>§output_bytes: Option<u64>§filename: Option<String>§content_hash: Option<String>§ts: u64

Implementations§

Source§

impl TeamEvent

Source

pub fn daemon_started() -> Self

Source

pub fn daemon_reloading() -> Self

Source

pub fn daemon_reloaded() -> Self

Source

pub fn daemon_stopped() -> Self

Source

pub fn daemon_stopped_with_reason(reason: &str, uptime_secs: u64) -> Self

Source

pub fn daemon_heartbeat(uptime_secs: u64) -> Self

Source

pub fn context_exhausted( role: &str, task: Option<u32>, session_size_bytes: Option<u64>, ) -> Self

Source

pub fn loop_step_error(step: &str, error: &str) -> Self

Source

pub fn daemon_panic(reason: &str) -> Self

Source

pub fn task_assigned(role: &str, task: &str) -> Self

Source

pub fn cwd_corrected(role: &str, path: &str) -> Self

Source

pub fn review_nudge_sent(role: &str, task: &str) -> Self

Source

pub fn review_escalated(task: &str, reason: &str) -> Self

Source

pub fn state_reconciliation( role: Option<&str>, task: Option<&str>, correction: &str, ) -> Self

Source

pub fn task_escalated(role: &str, task: &str, reason: Option<&str>) -> Self

Source

pub fn task_unblocked(role: &str, task: &str) -> Self

Source

pub fn performance_regression(task: &str, reason: &str) -> Self

Source

pub fn task_completed(role: &str, task: Option<&str>) -> Self

Source

pub fn standup_generated(recipient: &str) -> Self

Source

pub fn retro_generated() -> Self

Source

pub fn pattern_detected(pattern_type: &str, frequency: u32) -> Self

Source

pub fn member_crashed(role: &str, restart: bool) -> Self

Source

pub fn pane_death(role: &str) -> Self

Source

pub fn pane_respawned(role: &str) -> Self

Source

pub fn narration_detected(role: &str, task: Option<u32>) -> Self

Source

pub fn narration_rejection( role: &str, task_id: u32, rejection_count: u32, ) -> Self

Source

pub fn context_pressure_warning( role: &str, task: Option<u32>, output_bytes: u64, threshold_bytes: u64, ) -> Self

Source

pub fn stall_detected( role: &str, task: Option<u32>, stall_duration_secs: u64, ) -> Self

Source

pub fn health_changed(role: &str, reason: &str) -> Self

Record a backend health state change for an agent.

reason encodes the transition, e.g. “healthy→unreachable”.

Source

pub fn message_routed(from: &str, to: &str) -> Self

Source

pub fn agent_spawned(role: &str) -> Self

Source

pub fn agent_restarted( role: &str, task: &str, reason: &str, restart_count: u32, ) -> Self

Source

pub fn task_resumed( role: &str, task: &str, reason: &str, restart_count: u32, ) -> Self

Source

pub fn delivery_failed(role: &str, from: &str, reason: &str) -> Self

Source

pub fn task_auto_merged( engineer: &str, task: &str, confidence: f64, files_changed: usize, lines_changed: usize, ) -> Self

Source

pub fn task_manual_merged(task: &str) -> Self

Source

pub fn merge_confidence_scored(info: &MergeConfidenceInfo<'_>) -> Self

Emitted for every completed task to record its merge confidence score.

Source

pub fn review_escalated_by_role(role: &str, task: &str) -> Self

Source

pub fn task_reworked(role: &str, task: &str) -> Self

Source

pub fn task_recycled(task_id: u32, cron_expr: &str) -> Self

Source

pub fn barrier_artifact_created( role: &str, filename: &str, content_hash: &str, ) -> Self

Source

pub fn barrier_artifact_read( role: &str, filename: &str, content_hash: &str, ) -> Self

Source

pub fn barrier_violation_attempt( role: &str, filename: &str, reason: &str, ) -> Self

Source

pub fn load_snapshot( working_members: u32, total_members: u32, session_running: bool, ) -> Self

Source

pub fn parity_updated(summary: &ParitySummary) -> Self

Source

pub fn worktree_reconciled(role: &str, branch: &str) -> Self

Source

pub fn topology_changed(added: u32, removed: u32, reason: &str) -> Self

Emitted when the daemon reconciles a topology change.

reason contains a human-readable summary (e.g. “+2 added, -1 removed”).

Source

pub fn agent_removed(role: &str, reason: &str) -> Self

Emitted when an agent is removed during a scale-down.

Trait Implementations§

Source§

impl Clone for TeamEvent

Source§

fn clone(&self) -> TeamEvent

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for TeamEvent

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for TeamEvent

Source§

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 Serialize for TeamEvent

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> Downcast for T
where T: Any,

Source§

fn into_any(self: Box<T>) -> Box<dyn Any>

Convert Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.
Source§

fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>

Convert Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be further downcast into Rc<ConcreteType> where ConcreteType implements Trait.
Source§

fn as_any(&self) -> &(dyn Any + 'static)

Convert &Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &Any’s vtable from &Trait’s.
Source§

fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)

Convert &mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &mut Any’s vtable from &mut Trait’s.
Source§

impl<T> DowncastSync for T
where T: Any + Send + Sync,

Source§

fn into_any_arc(self: Arc<T>) -> Arc<dyn Any + Sync + Send>

Convert Arc<Trait> (where Trait: Downcast) to Arc<Any>. Arc<Any> can then be further downcast into Arc<ConcreteType> where ConcreteType implements Trait.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,