pub enum LlmixError {
Show 19 variants
InvalidResponseCacheConfig(String),
InvalidKeyPoolConfig(String),
InvalidAdaptiveSemaphoreConfig(String),
InvalidRetryPolicyConfig(String),
InvalidFileLockConfig(String),
InvalidProviderKwargsConfig(String),
Redis(String),
UnknownKeyPoolKey(String),
CanonicalJson(Error),
Io(Error),
CircuitOpen(CircuitOpenError),
KillSwitchActive(KillSwitchActiveError),
KeyPoolExhausted(KeyPoolExhaustedError),
ConfigNotFound(ConfigNotFoundError),
ConfigAccess(ConfigAccessError),
InvalidConfig(InvalidConfigError),
Security(SecurityError),
AdaptiveSemaphoreClosed(AdaptiveSemaphoreClosedError),
Provider(ProviderError),
}Variants§
InvalidResponseCacheConfig(String)
InvalidKeyPoolConfig(String)
InvalidAdaptiveSemaphoreConfig(String)
InvalidRetryPolicyConfig(String)
InvalidFileLockConfig(String)
InvalidProviderKwargsConfig(String)
Redis(String)
UnknownKeyPoolKey(String)
CanonicalJson(Error)
Io(Error)
CircuitOpen(CircuitOpenError)
KillSwitchActive(KillSwitchActiveError)
KeyPoolExhausted(KeyPoolExhaustedError)
ConfigNotFound(ConfigNotFoundError)
ConfigAccess(ConfigAccessError)
InvalidConfig(InvalidConfigError)
Security(SecurityError)
AdaptiveSemaphoreClosed(AdaptiveSemaphoreClosedError)
Provider(ProviderError)
Trait Implementations§
Source§impl Debug for LlmixError
impl Debug for LlmixError
Source§impl Display for LlmixError
impl Display for LlmixError
Source§impl Error for LlmixError
impl Error for LlmixError
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<AdaptiveSemaphoreClosedError> for LlmixError
impl From<AdaptiveSemaphoreClosedError> for LlmixError
Source§fn from(source: AdaptiveSemaphoreClosedError) -> Self
fn from(source: AdaptiveSemaphoreClosedError) -> Self
Converts to this type from the input type.
Source§impl From<CircuitOpenError> for LlmixError
impl From<CircuitOpenError> for LlmixError
Source§fn from(source: CircuitOpenError) -> Self
fn from(source: CircuitOpenError) -> Self
Converts to this type from the input type.
Source§impl From<ConfigAccessError> for LlmixError
impl From<ConfigAccessError> for LlmixError
Source§fn from(source: ConfigAccessError) -> Self
fn from(source: ConfigAccessError) -> Self
Converts to this type from the input type.
Source§impl From<ConfigNotFoundError> for LlmixError
impl From<ConfigNotFoundError> for LlmixError
Source§fn from(source: ConfigNotFoundError) -> Self
fn from(source: ConfigNotFoundError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for LlmixError
impl From<Error> for LlmixError
Source§impl From<Error> for LlmixError
impl From<Error> for LlmixError
Source§impl From<InvalidConfigError> for LlmixError
impl From<InvalidConfigError> for LlmixError
Source§fn from(source: InvalidConfigError) -> Self
fn from(source: InvalidConfigError) -> Self
Converts to this type from the input type.
Source§impl From<KeyPoolExhaustedError> for LlmixError
impl From<KeyPoolExhaustedError> for LlmixError
Source§fn from(source: KeyPoolExhaustedError) -> Self
fn from(source: KeyPoolExhaustedError) -> Self
Converts to this type from the input type.
Source§impl From<KillSwitchActiveError> for LlmixError
impl From<KillSwitchActiveError> for LlmixError
Source§fn from(source: KillSwitchActiveError) -> Self
fn from(source: KillSwitchActiveError) -> Self
Converts to this type from the input type.
Source§impl From<ProviderError> for LlmixError
impl From<ProviderError> for LlmixError
Source§fn from(source: ProviderError) -> Self
fn from(source: ProviderError) -> Self
Converts to this type from the input type.
Source§impl From<SecurityError> for LlmixError
impl From<SecurityError> for LlmixError
Source§fn from(source: SecurityError) -> Self
fn from(source: SecurityError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for LlmixError
impl !RefUnwindSafe for LlmixError
impl Send for LlmixError
impl Sync for LlmixError
impl Unpin for LlmixError
impl UnsafeUnpin for LlmixError
impl !UnwindSafe for LlmixError
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