Skip to main content

ValueBytesCodecRegistry

Type Alias ValueBytesCodecRegistry 

Source
pub type ValueBytesCodecRegistry = ValueCodecRegistry<ValueBytesCodecDescriptor>;
Expand description

An immutable bytes-wire value-codec registry sorted by stable ID.

Aliased Type§

pub struct ValueBytesCodecRegistry { /* private fields */ }

Implementations§

Source§

impl ValueBytesCodecRegistry

Source

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.

Source

pub fn global() -> &'static Self

Returns the process-wide bytes registry or panics with a stable diagnostic.

§Returns

A shared static registry, initialized at most once by try_global.

§Panics

Panics when linked registrations conflict.