Skip to main content

Module msg

Module msg 

Source
Expand description

This contains restricted message sets namespaced by link protocol version.

In other words, each protocol version define sets of possible messages depending on the channel type as in client or relay and initiator or responder.

This module also defines MessageFilter which can be used to filter messages based on specific details of the message such as direction, command, channel type and channel stage.

Modulesยง

linkv4 ๐Ÿ”’
Subprotocol LINK version 4.
linkv5 ๐Ÿ”’
Subprotocol LINK version 5.

Structsยง

MessageFilter ๐Ÿ”’
A message filter object which is used to learn if a certain message is allowed or not on a channel.

Enumsยง

LinkVersion ๐Ÿ”’
Channel protocol version negotiated.
MessageStage ๐Ÿ”’
What stage a channel can be of a negotiation. This is used in order to learn which restricted message set we should be looking at.

Functionsยง

decode_as_any ๐Ÿ”’
Helper function to decode a cell within a restricted msg set into an AnyChanCell.
encode_as_any ๐Ÿ”’
Helper function to encode an AnyChanCell cell that is within a restricted msg set R.