#[non_exhaustive]pub enum EmbeddingProviderError {
Unavailable {
reason: String,
},
SpaceMismatch,
Deadline,
Cancelled,
Internal(String),
}Expand description
Provider-side failure vocabulary. A provider failure fails the ingest batch; it is never downgraded to an unembedded write.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
Source§impl Debug for EmbeddingProviderError
impl Debug for EmbeddingProviderError
Source§impl Display for EmbeddingProviderError
impl Display for EmbeddingProviderError
Source§impl Error for EmbeddingProviderError
impl Error for EmbeddingProviderError
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()
Auto Trait Implementations§
impl Freeze for EmbeddingProviderError
impl RefUnwindSafe for EmbeddingProviderError
impl Send for EmbeddingProviderError
impl Sync for EmbeddingProviderError
impl Unpin for EmbeddingProviderError
impl UnsafeUnpin for EmbeddingProviderError
impl UnwindSafe for EmbeddingProviderError
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