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§
Sourcefn should_record() -> bool
fn should_record() -> bool
Whether or not we should record incoming XCMs.
Sourcefn set_record_xcm(enabled: bool)
fn set_record_xcm(enabled: bool)
Enable or disable recording.
Sourcefn recorded_xcm() -> Option<Xcm<()>>
fn recorded_xcm() -> Option<Xcm<()>>
Get recorded XCM.
Returns None if no message was sent, or if recording was off.
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.