pub trait UmbraExtension: Copy + 'static {
const TAG: u8;
}Expand description
Marker trait for user-defined extension types stored in SharedUmbraPointer’s reserved bytes. Each implementor declares a unique TAG so different consumers don’t misinterpret each other’s payloads.
§Implementor responsibility
TAG MUST be globally unique across all UmbraExtension
implementations that may be present in the same shared memory.
Two implementations sharing a TAG value will silently
misinterpret each other’s payloads. Reserve TAG values in your
application by registering them in a central location (e.g. a
doc comment listing claimed tags).
TAG 0 is reserved for “no extension set”.
Required Associated Constants§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".