Skip to main content

EmbeddingError

Trait EmbeddingError 

Source
pub trait EmbeddingError:
    Error
    + Send
    + Sync
    + 'static { }
Expand description

Marker trait that every EmbeddingProvider::Error must satisfy.

Equivalent to std::error::Error + Send + Sync + 'static, written as its own trait so it is searchable, a single place to add cross-backend extension methods later, and a sticky name in error messages.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<T> EmbeddingError for T
where T: Error + Send + Sync + 'static,

Blanket impl: any type that meets the bound is an EmbeddingError.