pub enum LlmErrorKind {
NetworkError,
AuthError,
RateLimited,
ServerError,
StreamInterrupted,
StreamTimeout,
ContextOverflow,
Other,
}Expand description
LLM 对话错误类型
Variants§
NetworkError
AuthError
RateLimited
ServerError
StreamInterrupted
StreamTimeout
ContextOverflow
Other
Trait Implementations§
Source§impl Clone for LlmErrorKind
impl Clone for LlmErrorKind
Source§fn clone(&self) -> LlmErrorKind
fn clone(&self) -> LlmErrorKind
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 LlmErrorKind
impl Debug for LlmErrorKind
Source§impl Serialize for LlmErrorKind
impl Serialize for LlmErrorKind
impl Copy for LlmErrorKind
Auto Trait Implementations§
impl Freeze for LlmErrorKind
impl RefUnwindSafe for LlmErrorKind
impl Send for LlmErrorKind
impl Sync for LlmErrorKind
impl Unpin for LlmErrorKind
impl UnsafeUnpin for LlmErrorKind
impl UnwindSafe for LlmErrorKind
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