ProtocolSchema

Trait ProtocolSchema 

Source
pub trait ProtocolSchema {
    // Provided method
    fn ensure_registration() { ... }
}

Provided Methods§

Source

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.

Implementations on Foreign Types§

Source§

impl ProtocolSchema for bool

Source§

impl ProtocolSchema for i8

Source§

impl ProtocolSchema for i16

Source§

impl ProtocolSchema for i32

Source§

impl ProtocolSchema for i64

Source§

impl ProtocolSchema for i128

Source§

impl ProtocolSchema for u8

Source§

impl ProtocolSchema for u16

Source§

impl ProtocolSchema for u32

Source§

impl ProtocolSchema for u64

Source§

impl ProtocolSchema for u128

Source§

impl ProtocolSchema for String

Implementors§