referrerpolicy=no-referrer-when-downgrade

SendToRelay

Trait SendToRelay 

Source
pub trait SendToRelay {
    type AccountId;

    // Required method
    fn send(message: MessageToRelay<Self::AccountId>) -> Result<(), ()>;
}
Expand description

Used to send an XCM Transact to the registrar pallet on the remote relay chain.

Required Associated Types§

Source

type AccountId

The account id used to identify a registration’s manager on both chains.

Required Methods§

Source

fn send(message: MessageToRelay<Self::AccountId>) -> Result<(), ()>

Send message to the relay chain.

Err(()) means the message could not be handed to the transport at all. Callers are expected to fail the whole extrinsic, so nothing is left half-done.

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 SendToRelay for ()

Available on crate feature std only.
Source§

type AccountId = AccountId32

Source§

fn send(_message: MessageToRelay<Self::AccountId>) -> Result<(), ()>

Implementors§