pub enum EmbeddingDecodeError {
Envelope {
source: Error,
},
CountMismatch {
expected: usize,
actual: usize,
},
NegativeIndex(i64),
IndexOutOfRange(usize, usize),
DuplicateIndex(usize),
MissingIndex(usize),
}Expand description
A decode failure of one stored embedding payload. The Display strings
are the durable last_error texts operators see in Postgres.
Variants§
Envelope
CountMismatch
NegativeIndex(i64)
IndexOutOfRange(usize, usize)
DuplicateIndex(usize)
MissingIndex(usize)
Trait Implementations§
Source§impl Debug for EmbeddingDecodeError
impl Debug for EmbeddingDecodeError
Source§impl Display for EmbeddingDecodeError
impl Display for EmbeddingDecodeError
Source§impl Error for EmbeddingDecodeError
impl Error for EmbeddingDecodeError
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 !RefUnwindSafe for EmbeddingDecodeError
impl !UnwindSafe for EmbeddingDecodeError
impl Freeze for EmbeddingDecodeError
impl Send for EmbeddingDecodeError
impl Sync for EmbeddingDecodeError
impl Unpin for EmbeddingDecodeError
impl UnsafeUnpin for EmbeddingDecodeError
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