pub trait Message {
type DigestType: Clone + Debug;
const SCOPE: IntentScope;
// Required method
fn digest(&self) -> Self::DigestType;
// Provided method
fn scope(&self) -> IntentScope { ... }
}Required Associated Constants§
Required Associated Types§
type DigestType: Clone + Debug
Required Methods§
fn digest(&self) -> Self::DigestType
Provided Methods§
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 Message for CheckpointSummary
impl Message for CheckpointSummary
const SCOPE: IntentScope = IntentScope::CheckpointSummary
type DigestType = CheckpointDigest
fn digest(&self) -> Self::DigestType
Source§impl Message for SenderSignedTransaction
impl Message for SenderSignedTransaction
Source§fn digest(&self) -> Self::DigestType
fn digest(&self) -> Self::DigestType
Computes the tx digest that encodes the Rust type prefix from Signable trait.