puniyu_runtime 0.8.15

puniyu 统一运行时 trait 库,提供运行时视图、消息发送能力与框架复合运行时
Documentation

puniyu_runtime

运行时抽象库,定义适配器运行时与消息发送等核心能力。

特性

  • 提供 RuntimeAdapterRuntime 核心 trait
  • 定义消息发送接口 Sender
  • 提供 AdapterInfo 运行时信息访问
  • 适合作为适配器能力与动态扩展的运行时边界层

快速开始

use puniyu_runtime::{Runtime, AdapterRuntime, Sender};
use puniyu_contact::ContactType;
use puniyu_message::Message;

impl Sender for MyRuntime {
    async fn send(&self, contact: ContactType, message: &Message) -> Result<SendMsgType> {
        // 实现发送逻辑
    }
}