referrerpolicy=no-referrer-when-downgrade

SendToPara

Trait SendToPara 

Source
pub trait SendToPara {
    // Required method
    fn send(message: MessageToPara) -> Result<(), ()>;
}

Required Methods§

Source

fn send(message: MessageToPara) -> Result<(), ()>

Send message to the parachain.

Err(()) means the transport refused the message. Callers here are mid-way through applying state that must survive, so they log and carry on rather than unwinding.

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

Available on crate feature std only.
Source§

fn send(_message: MessageToPara) -> Result<(), ()>

Implementors§