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§
sourcetype StoredMessagePayload
type StoredMessagePayload
Stored message payload type.
Required Methods§
sourcefn save_message(
&mut self,
nonce: MessageNonce,
message_payload: Self::StoredMessagePayload,
)
fn save_message( &mut self, nonce: MessageNonce, message_payload: Self::StoredMessagePayload, )
Save outbound message in the storage.
sourcefn remove_message(&mut self, nonce: &MessageNonce)
fn remove_message(&mut self, nonce: &MessageNonce)
Remove outbound message from the storage.