pub trait ConvertMessage {
type Balance: BalanceT + From<u128>;
type AccountId;
// Required method
fn convert(
message_id: H256,
message: VersionedMessage,
) -> Result<(Xcm<()>, Self::Balance), ConvertMessageError>;
}
Expand description
convert the inbound message to xcm which will be forwarded to the destination chain
Required Associated Types§
Required Methods§
Sourcefn convert(
message_id: H256,
message: VersionedMessage,
) -> Result<(Xcm<()>, Self::Balance), ConvertMessageError>
fn convert( message_id: H256, message: VersionedMessage, ) -> Result<(Xcm<()>, Self::Balance), ConvertMessageError>
Converts a versioned message into an XCM message and an optional topicID
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.