pub trait TrezorMessage: Message + Debug {
const MESSAGE_TYPE: MessageType;
// Provided method
fn message_type() -> MessageType { ... }
}
Expand description
Extends the protobuf Message trait to also have a static getter for the message type code.
Required Associated Constants§
const MESSAGE_TYPE: MessageType
Provided Methods§
fn message_type() -> MessageType
👎Deprecated: Use
MESSAGE_TYPE
insteadDyn 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.