Skip to main content

HiveActions

Trait HiveActions 

Source
pub trait HiveActions: Send + Sync {
    // Required methods
    fn shared_skill_keys(&self) -> HashSet<String>;
    fn share_skill(&self, skill: &DiscoveredSkill) -> Result<String, String>;
    fn hive_view_snapshot(&self) -> HiveViewSnapshot;
}
Expand description

Hive + relay surface the TUI needs to render the Skills and Hive panels.

Separate trait from Actions because the underlying subsystems are feature-gated (hive, relay) — when those features are off the implementation returns empty/no-op values rather than failing.

Required Methods§

Source

fn shared_skill_keys(&self) -> HashSet<String>

Semantic keys (skill:<lowered-name>) of skills already shared into the local hive store. Used by the Skills overlay to mark “already shared” rows.

Source

fn share_skill(&self, skill: &DiscoveredSkill) -> Result<String, String>

Share a discovered skill into the local hive store. Returns the new unit ID on success.

Source

fn hive_view_snapshot(&self) -> HiveViewSnapshot

Current view of the local relay identity + known peers for the Hive tab.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§