Trait bp_xcm_bridge::LocalXcmChannelManager

source ·
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§

source

type Error: Debug

Error that may be returned when suspending/resuming the bridge.

Required Methods§

source

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.

source

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.

Implementations on Foreign Types§

source§

impl<Bridge> LocalXcmChannelManager<Bridge> for ()

§

type Error = ()

source§

fn suspend_bridge( _local_origin: &Location, _bridge: Bridge, ) -> Result<(), Self::Error>

source§

fn resume_bridge( _local_origin: &Location, _bridge: Bridge, ) -> Result<(), Self::Error>

Implementors§

impl<Bridge: Encode + Debug + Copy, HereXcmChannelManager: LocalXcmChannelManager<Bridge>, LocalConsensusXcmChannelManager: LocalXcmChannelManager<Bridge>> LocalXcmChannelManager<Bridge> for HereOrLocalConsensusXcmChannelManager<Bridge, HereXcmChannelManager, LocalConsensusXcmChannelManager>

impl<T: Config<I>, I: 'static, XcmProvider: Convert<Vec<u8>, Xcm<()>>, XcmSender: SendXcm> LocalXcmChannelManager<BridgeId> for UpdateBridgeStatusXcmChannelManager<T, I, XcmProvider, XcmSender>

impl<T: Config<I>, I: 'static> LocalXcmChannelManager<<<T as Config<I>>::BridgeIdResolver as ResolveBridgeId>::BridgeId> for Pallet<T, I>