pub enum RuntimeModelErrorCode {
ModelUnavailable,
InvalidArgument,
ProviderError,
Timeout,
BudgetExceeded,
InternalError,
}Expand description
Stable model error codes exposed through the Lua result envelope. 通过 Lua 返回包络暴露的稳定模型错误码。
Variants§
The requested model capability has no registered host callback. 请求的模型能力没有注册宿主回调。
InvalidArgument
Lua supplied an invalid argument count, type, or empty string. Lua 提供了非法参数数量、类型或空字符串。
ProviderError
The host model provider returned an error. 宿主模型 provider 返回了错误。
Timeout
The host model invocation timed out. 宿主模型调用超时。
BudgetExceeded
The host rejected the invocation because a budget or limit was exceeded. 宿主因预算或限制超额拒绝了本次调用。
InternalError
LuaSkills or the host bridge hit an internal failure. LuaSkills 或宿主桥接遇到内部故障。
Implementations§
Trait Implementations§
Source§impl Clone for RuntimeModelErrorCode
impl Clone for RuntimeModelErrorCode
Source§fn clone(&self) -> RuntimeModelErrorCode
fn clone(&self) -> RuntimeModelErrorCode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RuntimeModelErrorCode
impl Debug for RuntimeModelErrorCode
Source§impl<'de> Deserialize<'de> for RuntimeModelErrorCode
impl<'de> Deserialize<'de> for RuntimeModelErrorCode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for RuntimeModelErrorCode
impl PartialEq for RuntimeModelErrorCode
Source§fn eq(&self, other: &RuntimeModelErrorCode) -> bool
fn eq(&self, other: &RuntimeModelErrorCode) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for RuntimeModelErrorCode
impl Serialize for RuntimeModelErrorCode
impl Eq for RuntimeModelErrorCode
impl StructuralPartialEq for RuntimeModelErrorCode
Auto Trait Implementations§
impl Freeze for RuntimeModelErrorCode
impl RefUnwindSafe for RuntimeModelErrorCode
impl Send for RuntimeModelErrorCode
impl Sync for RuntimeModelErrorCode
impl Unpin for RuntimeModelErrorCode
impl UnsafeUnpin for RuntimeModelErrorCode
impl UnwindSafe for RuntimeModelErrorCode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request