referrerpolicy=no-referrer-when-downgrade

Trait staging_xcm::IntoVersion

source ·
pub trait IntoVersion: Sized {
    // Required method
    fn into_version(self, version: Version) -> Result<Self, ()>;

    // Provided method
    fn into_latest(self) -> Result<Self, ()> { ... }
}
Expand description

Attempt to convert self into a particular version of itself.

Required Methods§

source

fn into_version(self, version: Version) -> Result<Self, ()>

Consume self and return same value expressed in some particular version of XCM.

Provided Methods§

source

fn into_latest(self) -> Result<Self, ()>

Consume self and return same value expressed the latest version of XCM.

Object Safety§

This trait is not object safe.

Implementors§