Skip to main content

StringRegister

Trait StringRegister 

Source
pub trait StringRegister: Send + Sync {
    // Required method
    fn register_strings(
        &self,
        entries: &[(StrHash, String)],
    ) -> impl Future<Output = Result<u64, Status>> + Send;
}
Expand description

Register hashed strings on the string-registry process(es).

Required Methods§

Source

fn register_strings( &self, entries: &[(StrHash, String)], ) -> impl Future<Output = Result<u64, Status>> + Send

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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§