pub enum EmbeddingError {
InvalidResponse(String),
RateLimited {
retry_after: Option<Duration>,
},
Timeout(Duration),
Provider(String),
Other(Box<dyn StdError + Send + Sync>),
}Variants§
InvalidResponse(String)
RateLimited
Timeout(Duration)
Provider(String)
Other(Box<dyn StdError + Send + Sync>)
Trait Implementations§
Source§impl Debug for EmbeddingError
impl Debug for EmbeddingError
Source§impl Display for EmbeddingError
impl Display for EmbeddingError
Source§impl Error for EmbeddingError
impl Error for EmbeddingError
Source§fn source(&self) -> Option<&(dyn StdError + 'static)>
fn source(&self) -> Option<&(dyn StdError + '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<EmbeddingError> for WesichainError
impl From<EmbeddingError> for WesichainError
Source§fn from(err: EmbeddingError) -> Self
fn from(err: EmbeddingError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for EmbeddingError
impl !RefUnwindSafe for EmbeddingError
impl Send for EmbeddingError
impl Sync for EmbeddingError
impl Unpin for EmbeddingError
impl UnsafeUnpin for EmbeddingError
impl !UnwindSafe for EmbeddingError
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