Expand description
§aiway-plugin
网关插件 SDK,用于实现自定义插件。
Re-exports§
pub use bincode;pub use http;pub use serde_json;
Modules§
- wasm_
types - WASM 插件边界序列化类型
Macros§
- export_
wasm - 导出 WASM 插件
- log_
debug - DEBUG日志
- log_
error - 格式化日志宏(ERROR 级别)
- log_
info - INFO日志
- log_
trace - TRACE日志
- log_
warn - WARN日志
Structs§
- Bytes
- A cheaply cloneable and sliceable chunk of contiguous memory.
- Form
Part - Multipart 表单字段
- Http
Request - HTTP 请求参数
- Http
Request Builder - HTTP 请求构建器
- Http
Response - HTTP 响应结果
- Plugin
Info - 插件信息
- Response
- 插件主动响应
- Version
- SemVer version as defined by https://semver.org.
- Wasm
Http Context - WASM 侧的插件上下文实现。
Enums§
- Outcome
- 插件控制流
- Plugin
Error - 插件错误类型
Constants§
Traits§
Functions§
- block_
on - 简易 block_on,用于在同步上下文(WASM 内部)中执行 async 函数。
- respond_
to_ host - 通知宿主记录插件主动响应(由 SDK 导出宏在
Outcome::Respond时调用)。