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", so this trait is not object safe.

Implementors§

Source§

impl Message for TransactionEffects

Source§

const SCOPE: IntentScope = IntentScope::TransactionEffects

Source§

type DigestType = TransactionEffectsDigest

Source§

impl Message for CheckpointSummary

Source§

const SCOPE: IntentScope = IntentScope::CheckpointSummary

Source§

type DigestType = CheckpointDigest

Source§

impl Message for AuthorityCapabilitiesV1

Source§

const SCOPE: IntentScope = IntentScope::AuthorityCapabilities

Source§

type DigestType = AuthorityCapabilitiesDigest

Source§

impl Message for SenderSignedData

Source§

const SCOPE: IntentScope = IntentScope::SenderSignedTransaction

Source§

type DigestType = TransactionDigest