pub type LanesManagerOf<T, I> = LanesManager<T, <T as Config<I>>::BridgeMessagesPalletInstance>;
Expand description
An alias for the associated lanes manager.
Aliased Type§
struct LanesManagerOf<T, I>(/* private fields */);
Implementations
§impl<T, I> LanesManager<T, I>where
T: Config<I>,
I: 'static,
impl<T, I> LanesManager<T, I>where
T: Config<I>,
I: 'static,
pub fn new() -> LanesManager<T, I>
pub fn new() -> LanesManager<T, I>
Create new lanes manager.
pub fn create_inbound_lane(
&self,
lane_id: <T as Config<I>>::LaneId,
) -> Result<InboundLane<RuntimeInboundLaneStorage<T, I>>, LanesManagerError>
pub fn create_inbound_lane( &self, lane_id: <T as Config<I>>::LaneId, ) -> Result<InboundLane<RuntimeInboundLaneStorage<T, I>>, LanesManagerError>
Create new inbound lane in Opened
state.
pub fn create_outbound_lane(
&self,
lane_id: <T as Config<I>>::LaneId,
) -> Result<OutboundLane<RuntimeOutboundLaneStorage<T, I>>, LanesManagerError>
pub fn create_outbound_lane( &self, lane_id: <T as Config<I>>::LaneId, ) -> Result<OutboundLane<RuntimeOutboundLaneStorage<T, I>>, LanesManagerError>
Create new outbound lane in Opened
state.
pub fn active_inbound_lane(
&self,
lane_id: <T as Config<I>>::LaneId,
) -> Result<InboundLane<RuntimeInboundLaneStorage<T, I>>, LanesManagerError>
pub fn active_inbound_lane( &self, lane_id: <T as Config<I>>::LaneId, ) -> Result<InboundLane<RuntimeInboundLaneStorage<T, I>>, LanesManagerError>
Get existing inbound lane, checking that it is in usable state.
pub fn active_outbound_lane(
&self,
lane_id: <T as Config<I>>::LaneId,
) -> Result<OutboundLane<RuntimeOutboundLaneStorage<T, I>>, LanesManagerError>
pub fn active_outbound_lane( &self, lane_id: <T as Config<I>>::LaneId, ) -> Result<OutboundLane<RuntimeOutboundLaneStorage<T, I>>, LanesManagerError>
Get existing outbound lane, checking that it is in usable state.
pub fn any_state_inbound_lane(
&self,
lane_id: <T as Config<I>>::LaneId,
) -> Result<InboundLane<RuntimeInboundLaneStorage<T, I>>, LanesManagerError>
pub fn any_state_inbound_lane( &self, lane_id: <T as Config<I>>::LaneId, ) -> Result<InboundLane<RuntimeInboundLaneStorage<T, I>>, LanesManagerError>
Get existing inbound lane without any additional state checks.
pub fn any_state_outbound_lane(
&self,
lane_id: <T as Config<I>>::LaneId,
) -> Result<OutboundLane<RuntimeOutboundLaneStorage<T, I>>, LanesManagerError>
pub fn any_state_outbound_lane( &self, lane_id: <T as Config<I>>::LaneId, ) -> Result<OutboundLane<RuntimeOutboundLaneStorage<T, I>>, LanesManagerError>
Get existing outbound lane without any additional state checks.