pub enum HostError {
}Expand description
Failure returned at the plugin-host seam. 插件宿主接口返回的失败。
Variants§
InvalidArtifact(String)
The artifact failed structural checks such as checksum or Wasm validation. 工件未通过校验和、Wasm 格式等结构检查。
InvalidOperation(String)
The operation name is not a valid plugin identifier. 操作名不是合法的插件标识符。
Abi(String)
The plugin’s exports or ABI version contradict the host contract. 插件的导出或 ABI 版本与宿主契约不符。
Limit(String)
A declared resource budget (fuel, memory, input, or output) was exceeded. 超出声明的资源预算(燃料、内存、输入或输出)。
Process(String)
The child process could not start, exited non-zero, or broke its pipes. 子进程无法启动、非零退出或管道中断。
Timeout
The call exceeded its hard deadline and the host killed it. 调用超出硬超时,宿主已将其中止。
Health(String)
The health probe answered something other than ok.
健康探针的回答不是 ok。
Slot(String)
The slot is unknown, malformed, or carries no installed generation. 插件槽未知、定义非法,或没有已安装的代际。
Policy(String)
The slot’s trust lane or manifest policy rejected the artifact. 插件槽的信任通道或清单策略拒绝了该工件。
Contract(String)
The artifact’s flow contract does not match the slot’s contract. 工件的数据流合同与插件槽的合同不匹配。
State(String)
Host bookkeeping state is unusable, typically a poisoned lock. 宿主簿记状态不可用,通常是锁被毒化。
Registry(String)
The registry graft needed to publish a deployment failed. 发布部署所需的注册树嫁接失败。
Io(Error)
Underlying I/O failure; the only variant that exposes a source error. 底层 I/O 失败;唯一会暴露源错误的变体。
Trait Implementations§
Source§impl Error for HostError
impl Error for HostError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()