pub trait ProtocolSchema {
// Provided method
fn ensure_registration() { ... }
}Provided Methods§
Sourcefn ensure_registration()
fn ensure_registration()
Workaround to be called directly for the specific type, if this is not included by collecting tool for some reason. Perhaps a call to this function, which is overridden for each type, ensures that linker doesn’t optimize the type out, even if all implementations are no-op. TODO (#11755): understand cases where it may be needed and find a proper solution for them.
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.