pub type ValueBytesCodecRegistry = ValueCodecRegistry<ValueBytesCodecDescriptor>;Expand description
An immutable bytes-wire value-codec registry sorted by stable ID.
§Examples
use qubit_codec::ValueBytesCodecRegistry;
let registry = ValueBytesCodecRegistry::empty();
assert!(registry.get("missing.example").is_none());Aliased Type§
pub struct ValueBytesCodecRegistry { /* private fields */ }Implementations§
Source§impl ValueBytesCodecRegistry
impl ValueBytesCodecRegistry
Sourcepub fn try_global() -> Result<&'static Self, ValueCodecRegistryError>
pub fn try_global() -> Result<&'static Self, ValueCodecRegistryError>
Initializes and returns the process-wide linked bytes registry.
Initialization is synchronized and cached, including construction failures.
§Returns
A shared static registry containing all linked bytes registrations.
§Errors
Returns the cached construction error when linked registrations conflict. The error identifies the lexically first duplicate ID and all declarations for that ID in source-field order.