pub struct ClusterServiceClient<T> { /* private fields */ }Expand description
Cluster service for inter-server communication
Implementations§
Source§impl<T> ClusterServiceClient<T>where
T: GrpcService<Body>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
impl<T> ClusterServiceClient<T>where
T: GrpcService<Body>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
pub fn new(inner: T) -> Self
pub fn with_origin(inner: T, origin: Uri) -> Self
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> ClusterServiceClient<InterceptedService<T, F>>where
F: Interceptor,
T::ResponseBody: Default,
T: Service<Request<Body>, Response = Response<<T as GrpcService<Body>>::ResponseBody>>,
<T as Service<Request<Body>>>::Error: Into<StdError> + Send + Sync,
Sourcepub fn send_compressed(self, encoding: CompressionEncoding) -> Self
pub fn send_compressed(self, encoding: CompressionEncoding) -> Self
Compress requests with the given encoding.
This requires the server to support it otherwise it might respond with an error.
Sourcepub fn accept_compressed(self, encoding: CompressionEncoding) -> Self
pub fn accept_compressed(self, encoding: CompressionEncoding) -> Self
Enable decompressing responses.
Sourcepub fn max_decoding_message_size(self, limit: usize) -> Self
pub fn max_decoding_message_size(self, limit: usize) -> Self
Limits the maximum size of a decoded message.
Default: 4MB
Sourcepub fn max_encoding_message_size(self, limit: usize) -> Self
pub fn max_encoding_message_size(self, limit: usize) -> Self
Limits the maximum size of an encoded message.
Default: usize::MAX
Sourcepub async fn get_cluster_state(
&mut self,
request: impl IntoRequest<GetClusterStateRequest>,
) -> Result<Response<GetClusterStateResponse>, Status>
pub async fn get_cluster_state( &mut self, request: impl IntoRequest<GetClusterStateRequest>, ) -> Result<Response<GetClusterStateResponse>, Status>
Get cluster state from a node
Sourcepub async fn update_cluster_state(
&mut self,
request: impl IntoRequest<UpdateClusterStateRequest>,
) -> Result<Response<UpdateClusterStateResponse>, Status>
pub async fn update_cluster_state( &mut self, request: impl IntoRequest<UpdateClusterStateRequest>, ) -> Result<Response<UpdateClusterStateResponse>, Status>
Update cluster state (heartbeat, membership changes)
Sourcepub async fn remote_insert_vector(
&mut self,
request: impl IntoRequest<RemoteInsertVectorRequest>,
) -> Result<Response<RemoteInsertVectorResponse>, Status>
pub async fn remote_insert_vector( &mut self, request: impl IntoRequest<RemoteInsertVectorRequest>, ) -> Result<Response<RemoteInsertVectorResponse>, Status>
Remote vector operations
pub async fn remote_update_vector( &mut self, request: impl IntoRequest<RemoteUpdateVectorRequest>, ) -> Result<Response<RemoteUpdateVectorResponse>, Status>
pub async fn remote_delete_vector( &mut self, request: impl IntoRequest<RemoteDeleteVectorRequest>, ) -> Result<Response<RemoteDeleteVectorResponse>, Status>
pub async fn remote_search_vectors( &mut self, request: impl IntoRequest<RemoteSearchVectorsRequest>, ) -> Result<Response<RemoteSearchVectorsResponse>, Status>
pub async fn remote_hybrid_search( &mut self, request: impl IntoRequest<RemoteHybridSearchRequest>, ) -> Result<Response<RemoteHybridSearchResponse>, Status>
Sourcepub async fn remote_create_collection(
&mut self,
request: impl IntoRequest<RemoteCreateCollectionRequest>,
) -> Result<Response<RemoteCreateCollectionResponse>, Status>
pub async fn remote_create_collection( &mut self, request: impl IntoRequest<RemoteCreateCollectionRequest>, ) -> Result<Response<RemoteCreateCollectionResponse>, Status>
Remote collection operations
pub async fn remote_get_collection_info( &mut self, request: impl IntoRequest<RemoteGetCollectionInfoRequest>, ) -> Result<Response<RemoteGetCollectionInfoResponse>, Status>
pub async fn remote_delete_collection( &mut self, request: impl IntoRequest<RemoteDeleteCollectionRequest>, ) -> Result<Response<RemoteDeleteCollectionResponse>, Status>
Sourcepub async fn health_check(
&mut self,
request: impl IntoRequest<HealthCheckRequest>,
) -> Result<Response<HealthCheckResponse>, Status>
pub async fn health_check( &mut self, request: impl IntoRequest<HealthCheckRequest>, ) -> Result<Response<HealthCheckResponse>, Status>
Health check
Sourcepub async fn check_quota(
&mut self,
request: impl IntoRequest<CheckQuotaRequest>,
) -> Result<Response<CheckQuotaResponse>, Status>
pub async fn check_quota( &mut self, request: impl IntoRequest<CheckQuotaRequest>, ) -> Result<Response<CheckQuotaResponse>, Status>
Quota check across cluster
Sourcepub async fn get_shard_vectors(
&mut self,
request: impl IntoRequest<GetShardVectorsRequest>,
) -> Result<Response<GetShardVectorsResponse>, Status>
pub async fn get_shard_vectors( &mut self, request: impl IntoRequest<GetShardVectorsRequest>, ) -> Result<Response<GetShardVectorsResponse>, Status>
Shard data migration: fetch vectors from a shard in paginated batches
Sourcepub async fn raft_vote(
&mut self,
request: impl IntoRequest<RaftVoteRequest>,
) -> Result<Response<RaftVoteResponse>, Status>
pub async fn raft_vote( &mut self, request: impl IntoRequest<RaftVoteRequest>, ) -> Result<Response<RaftVoteResponse>, Status>
Raft consensus RPCs
pub async fn raft_append_entries( &mut self, request: impl IntoRequest<RaftAppendEntriesRequest>, ) -> Result<Response<RaftAppendEntriesResponse>, Status>
pub async fn raft_snapshot( &mut self, request: impl IntoRequest<RaftSnapshotRequest>, ) -> Result<Response<RaftSnapshotResponse>, Status>
Trait Implementations§
Source§impl<T: Clone> Clone for ClusterServiceClient<T>
impl<T: Clone> Clone for ClusterServiceClient<T>
Source§fn clone(&self) -> ClusterServiceClient<T>
fn clone(&self) -> ClusterServiceClient<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<T> !Freeze for ClusterServiceClient<T>
impl<T> RefUnwindSafe for ClusterServiceClient<T>where
T: RefUnwindSafe,
impl<T> Send for ClusterServiceClient<T>where
T: Send,
impl<T> Sync for ClusterServiceClient<T>where
T: Sync,
impl<T> Unpin for ClusterServiceClient<T>where
T: Unpin,
impl<T> UnsafeUnpin for ClusterServiceClient<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for ClusterServiceClient<T>where
T: UnwindSafe,
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> 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