pub trait RegistryReferenceEntry:
RegistryEntry
+ Debug
+ Send
+ Sync {
const REGISTRY_NAME: &'static str;
// Required methods
fn reference_by_id(id: usize) -> Option<&'static Self>;
fn reference_by_key(key: &Identifier) -> Option<&'static Self>;
}Expand description
Registry operations required by RegistryReference.
Required Associated Constants§
Sourceconst REGISTRY_NAME: &'static str
const REGISTRY_NAME: &'static str
Human-readable registry name used in codec errors.
Required Methods§
Sourcefn reference_by_id(id: usize) -> Option<&'static Self>
fn reference_by_id(id: usize) -> Option<&'static Self>
Looks up an entry by its protocol registry ID.
Sourcefn reference_by_key(key: &Identifier) -> Option<&'static Self>
fn reference_by_key(key: &Identifier) -> Option<&'static Self>
Looks up an entry by its registry key.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".