referrerpolicy=no-referrer-when-downgrade
pub trait OutboundLaneStorage {
    type StoredMessagePayload;
    type LaneId: Encode;

    // Required methods
    fn id(&self) -> Self::LaneId;
    fn data(&self) -> OutboundLaneData;
    fn set_data(&mut self, data: OutboundLaneData);
    fn save_message(
        &mut self,
        nonce: MessageNonce,
        message_payload: Self::StoredMessagePayload,
    );
    fn remove_message(&mut self, nonce: &MessageNonce);
    fn purge(self);
}
Expand description

Outbound lane storage.

Required Associated Types§

source

type StoredMessagePayload

Stored message payload type.

source

type LaneId: Encode

Lane identifier type.

Required Methods§

source

fn id(&self) -> Self::LaneId

Lane id.

source

fn data(&self) -> OutboundLaneData

Get lane data from the storage.

source

fn set_data(&mut self, data: OutboundLaneData)

Update lane data in the storage.

source

fn save_message( &mut self, nonce: MessageNonce, message_payload: Self::StoredMessagePayload, )

Save outbound message in the storage.

source

fn remove_message(&mut self, nonce: &MessageNonce)

Remove outbound message from the storage.

source

fn purge(self)

Purge lane data from the storage.

Implementors§

source§

impl<T: Config<I>, I: 'static> OutboundLaneStorage for RuntimeOutboundLaneStorage<T, I>

§

type StoredMessagePayload = BoundedVec<u8, StoredMessagePayloadLimit<T, I>>

§

type LaneId = <T as Config<I>>::LaneId