pub trait LocalXcmChannelManager<Bridge> {
type Error: Debug;
// Required methods
fn suspend_bridge(
local_origin: &Location,
bridge: Bridge,
) -> Result<(), Self::Error>;
fn resume_bridge(
local_origin: &Location,
bridge: Bridge,
) -> Result<(), Self::Error>;
}
Expand description
Local XCM channel manager.
Required Associated Types§
Required Methods§
sourcefn suspend_bridge(
local_origin: &Location,
bridge: Bridge,
) -> Result<(), Self::Error>
fn suspend_bridge( local_origin: &Location, bridge: Bridge, ) -> Result<(), Self::Error>
Suspend the bridge, opened by given origin.
The local_origin
is guaranteed to be in the same consensus. However, it may point to
something below the chain level - like the contract or pallet instance, for example.
sourcefn resume_bridge(
local_origin: &Location,
bridge: Bridge,
) -> Result<(), Self::Error>
fn resume_bridge( local_origin: &Location, bridge: Bridge, ) -> Result<(), Self::Error>
Resume the previously suspended bridge, opened by given origin.
The local_origin
is guaranteed to be in the same consensus. However, it may point to
something below the chain level - like the contract or pallet instance, for example.
Object Safety§
This trait is not object safe.