linera_chain::data_types

Trait OutgoingMessageExt

Source
pub trait OutgoingMessageExt {
    // Required methods
    fn has_destination(&self, medium: &Medium, recipient: ChainId) -> bool;
    fn into_posted(self, index: u32) -> PostedMessage;
}

Required Methods§

Source

fn has_destination(&self, medium: &Medium, recipient: ChainId) -> bool

Returns whether this message is sent via the given medium to the specified recipient. If the medium is a channel, does not verify that the recipient is actually subscribed to that channel.

Source

fn into_posted(self, index: u32) -> PostedMessage

Returns the posted message, i.e. the outgoing message without the destination.

Implementations on Foreign Types§

Source§

impl OutgoingMessageExt for OutgoingMessage

Source§

fn has_destination(&self, medium: &Medium, recipient: ChainId) -> bool

Returns whether this message is sent via the given medium to the specified recipient. If the medium is a channel, does not verify that the recipient is actually subscribed to that channel.

Source§

fn into_posted(self, index: u32) -> PostedMessage

Returns the posted message, i.e. the outgoing message without the destination.

Implementors§