Skip to main content

GrpcRegistryClients

Struct GrpcRegistryClients 

Source
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

Source

pub async fn connect(config: &ClusterConfig) -> Result<Self, ComputeError>

Connect to every registry node listed in config.

Trait Implementations§

Source§

impl BlobStoreClient for GrpcRegistryClients

Source§

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§

async fn put_blobs(&self, blobs: &[(StrHash, Arc<[u8]>)]) -> Result<(), Status>

Put a batch of whole blobs in one unary request (see the trait docs for the idempotency / atomicity contract). Batches are framed by the caller under crate::PUT_BLOBS_BATCH_BYTES.
Source§

async fn get_blobs( &self, ids: &[StrHash], ) -> Result<Vec<Option<Vec<u8>>>, Status>

Batched get: payloads aligned with ids (None = miss).
Source§

impl Clone for GrpcRegistryClients

Source§

fn clone(&self) -> GrpcRegistryClients

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for GrpcRegistryClients

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl RegistryAdmin for GrpcRegistryClients

Source§

async fn describe( &self, node: RegistryNodeId, ) -> Result<RegistryDescribe, Status>

Identity and operational metrics for node.
Source§

impl StringRegister for GrpcRegistryClients

Source§

async fn register_strings( &self, entries: &[(StrHash, String)], ) -> Result<u64, Status>

Persist (hash, raw) pairs; multi-node registries group by hash ownership.
Source§

impl StringRegistryCompact for GrpcRegistryClients

Source§

async fn compact_range(&self) -> Result<(), Status>

Ask every connected registry node to compact its dictionary CF.
Source§

impl StringRegistryFlush for GrpcRegistryClients

Source§

async fn flush_memtables(&self) -> Result<(), Status>

Ask every connected registry node to flush its MemTables.
Source§

impl StringResolve for GrpcRegistryClients

Source§

async fn resolve_strings( &self, hashes: &[StrHash], ) -> Result<Vec<Option<String>>, Status>

Raw strings positionally aligned with hashes; None marks an unknown hash.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> FromRef<T> for T
where T: Clone,

§

fn from_ref(input: &T) -> T

Converts to this type from a reference to the input type.
§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> IntoRequest<T> for T

§

fn into_request(self) -> Request<T>

Wrap the input message T in a tonic::Request
§

impl<L> LayerExt<L> for L

§

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].
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,