Trait sp_messenger::endpoint::Sender
source · pub trait Sender<AccountId> {
type MessageId: Parameter + Member + Copy + Default;
// Required method
fn send_message(
sender: &AccountId,
dst_chain_id: ChainId,
req: EndpointRequest,
) -> Result<Self::MessageId, DispatchError>;
}
Expand description
Sender provides abstraction on sending messages to other chains.
Required Associated Types§
Required Methods§
sourcefn send_message(
sender: &AccountId,
dst_chain_id: ChainId,
req: EndpointRequest,
) -> Result<Self::MessageId, DispatchError>
fn send_message( sender: &AccountId, dst_chain_id: ChainId, req: EndpointRequest, ) -> Result<Self::MessageId, DispatchError>
Sends a message to dst_chain_id.
Object Safety§
This trait is not object safe.