Skip to main content

Message

Trait Message 

Source
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§

Source

const SCOPE: IntentScope

Required Associated Types§

Required Methods§

Source

fn digest(&self) -> Self::DigestType

Provided Methods§

Source

fn scope(&self) -> IntentScope

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl Message for CheckpointSummary

Source§

const SCOPE: IntentScope = IntentScope::CheckpointSummary

Source§

type DigestType = CheckpointDigest

Source§

impl Message for SenderSignedData

Source§

const SCOPE: IntentScope = IntentScope::SenderSignedTransaction

Source§

type DigestType = TransactionDigest

Source§

impl Message for TransactionEffects

Source§

const SCOPE: IntentScope = IntentScope::TransactionEffects

Source§

type DigestType = TransactionEffectsDigest