INNER CODE UNIT · Rust
send_system_message
aannoo/hcom · src/db/mod.rs:987
pub fn send_system_message(&self, sender_name: &str, message: &str) -> Result<Vec<String>> {
// Delegates to db::subscriptions; events_sub: kv ownership lives there.
subscriptions::send_system_message(self, sender_name, message)
}
/// Like `send_system_message` but lets the caller specify `sender_kind`
/// ("instance" | "external" | "system"). Used by subscription on-hit to
/// preserve the sub caller's real identity on the event.
pub fn send_message_as(
&self,
sender_name: &str,
sender_kind: &str,
message: &str,
) -> Result<Vec<String>> {
// Delegates to db::subscriptions; events_sub: kv ownership lives there.
subscriptions::send_message_as(self, sender_name, sender_kind, message)
}
}