Trait trezor_client::TrezorMessage
source · 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
insteadObject Safety§
This trait is not object safe.