pub trait SendController<Origin> {
type WeightInfo: SendControllerWeightInfo;
// Required method
fn send(
origin: Origin,
dest: Box<VersionedLocation>,
message: Box<VersionedXcm<()>>,
) -> Result<XcmHash, DispatchError>;
}
Expand description
Send an XCM from a given origin.
An implementation of that trait will handle the low-level details of dispatching an XCM, such as:
- Validating and Converting the origin to an interior location.
- Handling versioning.
- Calling the internal router, which implements
SendXcm
.
Required Associated Types§
Sourcetype WeightInfo: SendControllerWeightInfo
type WeightInfo: SendControllerWeightInfo
Weight information for SendController functions.
Required Methods§
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.