Trait staging_xcm_builder::SendController
source · 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§
Object Safety§
This trait is not object safe.