pub struct BackendSet {
pub embedder: Option<Arc<dyn Embedder>>,
pub index: Option<Arc<dyn IndexBackend + Send + Sync>>,
pub vector: Option<Arc<dyn VectorBackend + Send + Sync>>,
}Expand description
Result of backend initialization with optional components.
All backends are wrapped in Arc for shared ownership across services.
Fields§
§embedder: Option<Arc<dyn Embedder>>Embedder for generating vector embeddings.
index: Option<Arc<dyn IndexBackend + Send + Sync>>Index backend for full-text search (SQLite FTS5).
vector: Option<Arc<dyn VectorBackend + Send + Sync>>Vector backend for similarity search (usearch HNSW).
Implementations§
Source§impl BackendSet
impl BackendSet
Sourcepub fn is_complete(&self) -> bool
pub fn is_complete(&self) -> bool
Returns true if all backends were successfully initialized.
Sourcepub fn has_embedder(&self) -> bool
pub fn has_embedder(&self) -> bool
Returns true if at least the embedder is available.
Sourcepub fn has_vector(&self) -> bool
pub fn has_vector(&self) -> bool
Returns true if vector similarity search is available.
Trait Implementations§
Source§impl Default for BackendSet
impl Default for BackendSet
Source§fn default() -> BackendSet
fn default() -> BackendSet
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for BackendSet
impl !RefUnwindSafe for BackendSet
impl Send for BackendSet
impl Sync for BackendSet
impl Unpin for BackendSet
impl !UnwindSafe for BackendSet
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<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
§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§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Applies the layer to a service and wraps it in [
Layered].