referrerpolicy=no-referrer-when-downgrade

Module channel

Module channel 

Source
Expand description

Channel state primitives: the key and the two per-direction states the messaging pallet keeps in OutChannels / InChannels and returns from the runtime API’s out_channels() / in_channels().

State shapes, not wire types. The channel protocol (the in-band crate::SpecMsgSignals and the out-of-band Register) is in crate::flow_control; the logic is the pallet’s.

Structs§

ChannelId
Channel discriminator.
InChannelState
Receiver side, per inbound channel.
OutChannelState
Sender side, per outbound channel.
RegisterRead
A register as read: the peer’s latest Register and its position on the peer’s Ack stream. Kept together so no register can be stored without its position.

Enums§

ChannelPhase
A channel’s phase, derived from OutChannelState. Not stored.