pub trait ReflectMessage: Message {
    fn descriptor(&self) -> MessageDescriptor;

    fn transcode_to_dynamic(&self) -> DynamicMessage
    where
        Self: Sized
, { ... } }
Expand description

Trait for message types that support reflection.

Required methods

Gets a MessageDescriptor describing the type of this message.

Provided methods

Converts this message into an instance of DynamicMessage by going through the byte representation.

Implementations on Foreign Types

Implementors