referrerpolicy=no-referrer-when-downgrade

Trait RecordXcm

Source
pub trait RecordXcm {
    // Required methods
    fn should_record() -> bool;
    fn set_record_xcm(enabled: bool);
    fn recorded_xcm() -> Option<Xcm<()>>;
    fn record(xcm: Xcm<()>);
}
Expand description

Trait for recording XCMs.

Required Methods§

Source

fn should_record() -> bool

Whether or not we should record incoming XCMs.

Source

fn set_record_xcm(enabled: bool)

Enable or disable recording.

Source

fn recorded_xcm() -> Option<Xcm<()>>

Get recorded XCM. Returns None if no message was sent, or if recording was off.

Source

fn record(xcm: Xcm<()>)

Record xcm.

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 RecordXcm for ()

Implementors§