Module veloren_network::api
source · Structs§
- Use the
Network
to create connections to otherParticipants
Streams
represents a channel to sendn
messages with a certain priority andPromises
. messages need always to be send between 2Streams
.- All Parameters of a Stream, can be used to generate RawMessages
Enums§
- Represents a Tcp, Quic, Udp or Mpsc connection address
- Represents a Tcp, Quic, Udp or Mpsc listen address
- Error type thrown by
Networks
connect - Error type thrown by
Networks
methods - Error type thrown by
Participants
methods - A Participant can throw different events, you are obligated to carefully empty the queue from time to time.
- Error type thrown by
Streams
methods A Compression Error should only happen if a client sends malicious code. A Deserialize Error probably means you are expecting Type X while you actually got send type Y.