pub struct GrpcRegistryClients { /* private fields */ }Expand description
Tonic client(s) for the string-registry endpoint(s).
MVP holds one process (RegistryNodeId(0)). Entries are still routed with
ClusterConfig::registry_for_hash so splitting the registry later only
needs more connections in this map.
Implementations§
Source§impl GrpcRegistryClients
impl GrpcRegistryClients
Sourcepub async fn connect(config: &ClusterConfig) -> Result<Self, ComputeError>
pub async fn connect(config: &ClusterConfig) -> Result<Self, ComputeError>
Connect to every registry node listed in config.
Trait Implementations§
Source§impl BlobStoreClient for GrpcRegistryClients
impl BlobStoreClient for GrpcRegistryClients
Source§async fn put_blob_chunks(
&self,
blob_id: StrHash,
payload: Arc<[u8]>,
) -> Result<(), Status>
async fn put_blob_chunks( &self, blob_id: StrHash, payload: Arc<[u8]>, ) -> Result<(), Status>
Stream one blob’s chunks under the gRPC message budget (legacy path
for blobs above the
PutBlobs batch budget; the 64 MiB blob size
limit is enforced server-side at assembly).Source§impl Clone for GrpcRegistryClients
impl Clone for GrpcRegistryClients
Source§fn clone(&self) -> GrpcRegistryClients
fn clone(&self) -> GrpcRegistryClients
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 moreSource§impl Debug for GrpcRegistryClients
impl Debug for GrpcRegistryClients
Source§impl RegistryAdmin for GrpcRegistryClients
impl RegistryAdmin for GrpcRegistryClients
Source§async fn describe(
&self,
node: RegistryNodeId,
) -> Result<RegistryDescribe, Status>
async fn describe( &self, node: RegistryNodeId, ) -> Result<RegistryDescribe, Status>
Identity and operational metrics for
node.Source§impl StringRegister for GrpcRegistryClients
impl StringRegister for GrpcRegistryClients
Source§impl StringRegistryCompact for GrpcRegistryClients
impl StringRegistryCompact for GrpcRegistryClients
Source§async fn compact_range(&self) -> Result<(), Status>
async fn compact_range(&self) -> Result<(), Status>
Ask every connected registry node to compact its dictionary CF.
Source§impl StringRegistryFlush for GrpcRegistryClients
impl StringRegistryFlush for GrpcRegistryClients
Source§async fn flush_memtables(&self) -> Result<(), Status>
async fn flush_memtables(&self) -> Result<(), Status>
Ask every connected registry node to flush its MemTables.
Source§impl StringResolve for GrpcRegistryClients
impl StringResolve for GrpcRegistryClients
Auto Trait Implementations§
impl Freeze for GrpcRegistryClients
impl !RefUnwindSafe for GrpcRegistryClients
impl Send for GrpcRegistryClients
impl Sync for GrpcRegistryClients
impl Unpin for GrpcRegistryClients
impl UnsafeUnpin for GrpcRegistryClients
impl !UnwindSafe for GrpcRegistryClients
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,
§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>
§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].