pub struct EmbeddingServiceImpl;Expand description
Minimal pass-through embedding service stub for local Rust gRPC server mode.
Trait Implementations§
Source§impl EmbeddingService for EmbeddingServiceImpl
impl EmbeddingService for EmbeddingServiceImpl
Source§type EmbedStreamStream = ReceiverStream<Result<EmbedResponse, Status>>
type EmbedStreamStream = ReceiverStream<Result<EmbedResponse, Status>>
Server streaming response type for the EmbedStream method.
Source§fn embed<'life0, 'async_trait>(
&'life0 self,
_request: Request<EmbedRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<EmbedResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn embed<'life0, 'async_trait>(
&'life0 self,
_request: Request<EmbedRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<EmbedResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Embed a batch of texts in a single round-trip.
Source§fn health<'life0, 'async_trait>(
&'life0 self,
_request: Request<HealthRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<HealthResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn health<'life0, 'async_trait>(
&'life0 self,
_request: Request<HealthRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<HealthResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Check whether the model is loaded and the service is ready.
Source§fn model_info<'life0, 'async_trait>(
&'life0 self,
_request: Request<ModelInfoRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ModelInfoResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn model_info<'life0, 'async_trait>(
&'life0 self,
_request: Request<ModelInfoRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ModelInfoResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Return metadata about the currently loaded model.
Source§fn embed_stream<'life0, 'async_trait>(
&'life0 self,
_request: Request<Streaming<EmbedRequest>>,
) -> Pin<Box<dyn Future<Output = Result<Response<Self::EmbedStreamStream>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn embed_stream<'life0, 'async_trait>(
&'life0 self,
_request: Request<Streaming<EmbedRequest>>,
) -> Pin<Box<dyn Future<Output = Result<Response<Self::EmbedStreamStream>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Bidirectional streaming embed for large or continuous workloads.
Auto Trait Implementations§
impl Freeze for EmbeddingServiceImpl
impl RefUnwindSafe for EmbeddingServiceImpl
impl Send for EmbeddingServiceImpl
impl Sync for EmbeddingServiceImpl
impl Unpin for EmbeddingServiceImpl
impl UnsafeUnpin for EmbeddingServiceImpl
impl UnwindSafe for EmbeddingServiceImpl
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request