referrerpolicy=no-referrer-when-downgrade
pub trait WrapVersion {
    // Required method
    fn wrap_version<RuntimeCall>(
        dest: &Location,
        xcm: impl Into<VersionedXcm<RuntimeCall>>,
    ) -> Result<VersionedXcm<RuntimeCall>, ()>
       where RuntimeCall: Decode + GetDispatchInfo;
}
Expand description

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

Required Methods§

source

fn wrap_version<RuntimeCall>( dest: &Location, xcm: impl Into<VersionedXcm<RuntimeCall>>, ) -> Result<VersionedXcm<RuntimeCall>, ()>
where RuntimeCall: Decode + GetDispatchInfo,

Object Safety§

This trait is not object safe.

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>( _: &Location, xcm: impl Into<VersionedXcm<RuntimeCall>>, ) -> Result<VersionedXcm<RuntimeCall>, ()>

source§

impl<T> WrapVersion for Pallet<T>
where T: Config,

source§

fn wrap_version<RuntimeCall>( dest: &Location, xcm: impl Into<VersionedXcm<RuntimeCall>>, ) -> Result<VersionedXcm<RuntimeCall>, ()>
where RuntimeCall: Decode + GetDispatchInfo,

Implementors§