pub enum RegenError {
NotAnEmbeddingTask {
task: TaskKind,
},
NonCanonicalEmbedder {
task: TaskKind,
declared_id: ModelId,
declared_version: ModelVersion,
canonical_id: ModelId,
canonical_version: ModelVersion,
},
Embed(EmbedError),
Vector(VectorIndexError),
}Expand description
Failures from the regeneration loop.
Variants§
NotAnEmbeddingTask
The task has no canonical embedding model (unknown task, or a detection task with no stored vectors to regenerate).
NonCanonicalEmbedder
The embedder does not produce the registry’s canonical (model_id, model_version) for the
task — regeneration is refused before any output is stored, so the index never gains a
vector tagged with a tuple the embedder did not produce.
Fields
§
declared_version: ModelVersionThe embedder’s declared model version.
§
canonical_version: ModelVersionThe registry’s canonical model version.
Embed(EmbedError)
Producing an embedding failed.
Vector(VectorIndexError)
Writing the fresh embedding to the vector index failed.
Trait Implementations§
Source§impl Debug for RegenError
impl Debug for RegenError
Source§impl Display for RegenError
impl Display for RegenError
Source§impl Error for RegenError
impl Error for RegenError
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<EmbedError> for RegenError
impl From<EmbedError> for RegenError
Source§fn from(source: EmbedError) -> Self
fn from(source: EmbedError) -> Self
Converts to this type from the input type.
Source§impl From<VectorIndexError> for RegenError
impl From<VectorIndexError> for RegenError
Source§fn from(source: VectorIndexError) -> Self
fn from(source: VectorIndexError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for RegenError
impl !UnwindSafe for RegenError
impl Freeze for RegenError
impl Send for RegenError
impl Sync for RegenError
impl Unpin for RegenError
impl UnsafeUnpin for RegenError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more