Module veloren_network_protocol::types
source · Structs§
- Support struct used for uniquely identifying
Participant
over theNetwork
. - use promises to modify the behavior of
Streams
. see the consts in thisstruct
for - Unique ID per Stream, in one Channel. one side will always start with 0, while the other start with u64::MAX / 2. number increases for each created Stream.
Constants§
- Maximal possible Prio to choose (for performance reasons)
- When this semver differs, 2 Networks can’t communicate.
Functions§
Type Aliases§
- guaranteed
Bandwidth
. SeePrio
- ChannelID, unique ID per Channel (Protocol)
- MessageID, unique ID per Message.
- Every Stream has a
Prio
and guaranteedBandwidth
. Every send, the guarantees part is used first. If there is still bandwidth left, it will be shared by all Streams with the same priority. Prio 0 will be send first, then 1, … till the last prio 7 is send. Prio must be < 8!