Trait xcm::WrapVersion

source ·
pub trait WrapVersion {
    // Required method
    fn wrap_version<RuntimeCall>(
        dest: &MultiLocation,
        xcm: impl Into<VersionedXcm<RuntimeCall>>
    ) -> Result<VersionedXcm<RuntimeCall>, ()>;
}
Expand description

Convert an Xcm datum into a VersionedXcm, based on a destination MultiLocation which will interpret it.

Required Methods§

source

fn wrap_version<RuntimeCall>( dest: &MultiLocation, xcm: impl Into<VersionedXcm<RuntimeCall>> ) -> Result<VersionedXcm<RuntimeCall>, ()>

Implementations on Foreign Types§

source§

impl WrapVersion for ()

() implementation does nothing with the XCM, just sending with whatever version it was authored as.

source§

fn wrap_version<RuntimeCall>( _: &MultiLocation, xcm: impl Into<VersionedXcm<RuntimeCall>> ) -> Result<VersionedXcm<RuntimeCall>, ()>

Implementors§