Skip to main content

Message

Trait Message 

Source
pub trait Message: TypeHash {
    // Provided methods
    fn hash() -> MessageHash { ... }
    fn as_str() -> &'static str { ... }
}
Expand description

Trait for types that should be considered as a message type.

Provided Methods§

Source

fn hash() -> MessageHash

Source

fn as_str() -> &'static str

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.

Implementors§