pub enum AiCallbackError {
SecurityFailed(String),
ProviderNotAvailable,
InvalidPrompt(String),
ModelNotFound(String),
Timeout(u64),
ProviderError(String),
RateLimitExceeded,
Internal(String),
}Expand description
AI callback error
Variants§
SecurityFailed(String)
Security validation failed
ProviderNotAvailable
Provider not available
InvalidPrompt(String)
Invalid prompt
ModelNotFound(String)
Model not found
Timeout(u64)
Timeout
ProviderError(String)
Provider error
RateLimitExceeded
Rate limit exceeded
Internal(String)
Internal error
Trait Implementations§
Source§impl Debug for AiCallbackError
impl Debug for AiCallbackError
Source§impl Display for AiCallbackError
impl Display for AiCallbackError
Source§impl Error for AiCallbackError
impl Error for AiCallbackError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<AiCallbackError> for CallbackError
impl From<AiCallbackError> for CallbackError
Source§fn from(source: AiCallbackError) -> Self
fn from(source: AiCallbackError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AiCallbackError
impl RefUnwindSafe for AiCallbackError
impl Send for AiCallbackError
impl Sync for AiCallbackError
impl Unpin for AiCallbackError
impl UnsafeUnpin for AiCallbackError
impl UnwindSafe for AiCallbackError
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