pub struct BackendEmbedder<'runtime> {
pub state: &'runtime StateStore,
pub registry: &'runtime Registry<'runtime>,
pub probe: &'runtime dyn ProcessProbe,
pub model: String,
}Fields§
§state: &'runtime StateStore§registry: &'runtime Registry<'runtime>§probe: &'runtime dyn ProcessProbe§model: StringTrait Implementations§
Source§impl Embedder for BackendEmbedder<'_>
impl Embedder for BackendEmbedder<'_>
fn model(&self) -> &str
fn embed<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
texts: &'life1 [String],
cancel: &'life2 CancellationToken,
) -> Pin<Box<dyn Future<Output = Result<EmbeddingOutput, MemoryError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Auto Trait Implementations§
impl<'runtime> !RefUnwindSafe for BackendEmbedder<'runtime>
impl<'runtime> !UnwindSafe for BackendEmbedder<'runtime>
impl<'runtime> Freeze for BackendEmbedder<'runtime>
impl<'runtime> Send for BackendEmbedder<'runtime>
impl<'runtime> Sync for BackendEmbedder<'runtime>
impl<'runtime> Unpin for BackendEmbedder<'runtime>
impl<'runtime> UnsafeUnpin for BackendEmbedder<'runtime>
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