pub trait WrapVersion {
// Required method
fn wrap_version<RuntimeCall: Decode + GetDispatchInfo>(
dest: &Location,
xcm: impl Into<VersionedXcm<RuntimeCall>>,
) -> Result<VersionedXcm<RuntimeCall>, ()>;
}
Expand description
Convert an Xcm
datum into a VersionedXcm
, based on a destination Location
which will
interpret it.
Required Methods§
fn wrap_version<RuntimeCall: Decode + GetDispatchInfo>( dest: &Location, xcm: impl Into<VersionedXcm<RuntimeCall>>, ) -> Result<VersionedXcm<RuntimeCall>, ()>
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 WrapVersion for ()
impl WrapVersion for ()
()
implementation does nothing with the XCM, just sending with whatever version it was
authored as.