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§
Semantic keys (skill:<lowered-name>) of skills already shared into
the local hive store. Used by the Skills overlay to mark “already
shared” rows.
Share a discovered skill into the local hive store. Returns the new unit ID on success.
Sourcefn hive_view_snapshot(&self) -> HiveViewSnapshot
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".