pub trait InboundMessage {
type CompressedMessage: Debug;
// Required methods
fn data(&self) -> &[u8] ⓘ;
fn sent_at(&self) -> RelayChainBlockNumber;
fn to_compressed(&self) -> Self::CompressedMessage;
}
Expand description
A message that was received by the parachain.
Required Associated Types§
Sourcetype CompressedMessage: Debug
type CompressedMessage: Debug
The corresponding compressed message. This should be an equivalent message that stores the same metadata as the current message, but stores only a hash of the message data.
Required Methods§
Sourcefn sent_at(&self) -> RelayChainBlockNumber
fn sent_at(&self) -> RelayChainBlockNumber
Gets the relay chain number where the current message was pushed to the corresponding relay chain queue.
Sourcefn to_compressed(&self) -> Self::CompressedMessage
fn to_compressed(&self) -> Self::CompressedMessage
Converts the current message into a CompressedMessage