puniyu_runtime 0.8.11

puniyu 统一运行时 trait 库,提供运行时视图、消息发送能力与框架复合运行时
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use puniyu_adapter_types::AdapterInfo;

#[derive(Clone)]
pub struct AdapterRuntime {
    info: AdapterInfo,
}

impl AdapterRuntime {
    pub fn new(info: AdapterInfo) -> Self {
        Self { info }
    }

    pub fn info(&self) -> &AdapterInfo {
        &self.info
    }
}