pub enum EngineError {
Show 14 variants
Sqlite(Error),
Schema(SchemaError),
Io(Error),
WriterRejected(String),
WriterTimedOut(String),
InvalidWrite(String),
Bridge(String),
CapabilityMissing(String),
DatabaseLocked(String),
InvalidConfig(String),
EmbedderNotConfigured,
EmbeddingChangeRequiresAck {
affected_kinds: usize,
},
KindNotVectorIndexed {
kind: String,
},
DimensionMismatch {
expected: usize,
actual: usize,
},
}Expand description
Top-level error type for all engine operations.
Variants§
Sqlite(Error)
Schema(SchemaError)
Io(Error)
WriterRejected(String)
WriterTimedOut(String)
InvalidWrite(String)
Bridge(String)
CapabilityMissing(String)
DatabaseLocked(String)
InvalidConfig(String)
EmbedderNotConfigured
EmbeddingChangeRequiresAck
Attempted to change the database-wide embedding identity while
enabled per-kind vector index schemas exist, but the caller did not
acknowledge the rebuild impact. Re-invoke with
acknowledge_rebuild_impact = true to proceed (which will mark the
affected kinds stale without triggering a rebuild).
Fields
KindNotVectorIndexed
The caller ran semantic_search / raw_vector_search against a
kind that has no enabled vector_index_schemas row. Configure per-kind
vector indexing via AdminService::configure_vec_kind first.
DimensionMismatch
The caller’s vector (or the embedder’s output) does not match the active embedding profile’s dimension.
Trait Implementations§
Source§impl Debug for EngineError
impl Debug for EngineError
Source§impl Display for EngineError
impl Display for EngineError
Source§impl Error for EngineError
impl Error for EngineError
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<Error> for EngineError
impl From<Error> for EngineError
Source§impl From<Error> for EngineError
impl From<Error> for EngineError
Source§impl From<SchemaError> for EngineError
impl From<SchemaError> for EngineError
Source§fn from(source: SchemaError) -> Self
fn from(source: SchemaError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for EngineError
impl !RefUnwindSafe for EngineError
impl Send for EngineError
impl Sync for EngineError
impl Unpin for EngineError
impl UnsafeUnpin for EngineError
impl !UnwindSafe for EngineError
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